Dependencies 列出Merb::Slices依赖项的最佳方法?

Dependencies 列出Merb::Slices依赖项的最佳方法?,dependencies,merb,discover,slice,Dependencies,Merb,Discover,Slice,我正在我的Merb应用程序中创建一个切片列表,如下所示: Merb::切片。每个切片都做切片| 我想获得每个片段的依赖项列表,知道如何访问它吗 我仍在阅读merb代码,解决方案可能很快就会出现;) 我还没有使用切片,但据我所知,它们本身就像一个迷你merb应用程序,因此每个切片不是都有一个/config/dependencies.rb?也许这会被解析到程序中,并在某个地方可用 可能有什么 此外,这里还有关于Merb常量的可用方法(您可以从中获得环境之类的信息)。有一个叫做dependencies

我正在我的Merb应用程序中创建一个切片列表,如下所示:

Merb::切片。每个切片都做切片|

我想获得每个片段的依赖项列表,知道如何访问它吗


我仍在阅读merb代码,解决方案可能很快就会出现;)

我还没有使用切片,但据我所知,它们本身就像一个迷你merb应用程序,因此每个切片不是都有一个
/config/dependencies.rb
?也许这会被解析到程序中,并在某个地方可用

可能有什么

此外,这里还有关于Merb常量的可用方法(您可以从中获得环境之类的信息)。有一个叫做dependencies的函数,它返回一个数组(当我在应用程序中运行
merb-I
时,该数组是空的)

>Merb.methods.sort
=>[“=”、“JSON”、“\uuuu调用者信息”、“\uuuu调用者行”、“\uuuu id\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu,“捆绑?”,“类”,“类评估”,“类变量定义?”,“类变量”,“克隆”,“配置”,“常量定义?”,“常量获取”,“常量缺失”,“常量集”,“常量”,“上下文”,“调试器”,“解码64”,“解码b”,“深度克隆”,“延迟的操作”,“依赖项”,“依赖项”,“描述”,“目录”,“禁用”,“禁用”,“禁用?”,“disabled_components”、“disabled_components=”、“display”、“dup”、“encode64”、“encoded_hash”、“enforce!”、“enum_for”、“environment”、“environment=”、“environment_info=”、“eql?”、“equal?”、“exception”、“Existing=”、“extend”、“从参数中提取_选项!”、“fatal!”、“find_const”、“forking_environment?”、“forking_环境?”、”框架根、冻结、冻结、完全常量获取、完全常量集、生成器、给定、全局for、散列、id、in、include、include、modules、inline、inspect、instance、eval、instance、method、instance、methods、instance、instance变量定义、instance变量获取、instance变量集实例变量“,”is_a?”,”is_haml?”,“j”,“jj”,“种类?”,“klass_hashes”,“klass_hashes=”,“load_config”,“load_dependencies”,“load_dependencies”,“load_dependencies”,“load_paths”,“load_paths”,“log_path”,“log_stream”,“logger”,“make_module”,“merb”,“merge_env”,“meta_class”,“method”,“method_defined?”,“methods”,“methods”,“mime_transform_method”,“module_eval”,”模块“,”名称“,”无“,”对象“,”id“,”在jruby上“,”在windows上“,”选项“,”orm“,”orm“,”生成器“,”范围“,”呈现“,”打印着色的“,”回溯“,”私有类“,”私有实例“,”私有方法“,”私有方法“,”受保护实例“,”受保护方法“,”已定义“,”受保护方法“,”公共类方法、公共实例方法、定义的公共方法、公共方法、推送路径、庸医式方法、rakefiles、reload、remove mime类型、remove路径、rescue require、reset logger!、respond to、restart环境、root、root=、“root路径”、“send”、“share as”、“share示例for”、“shared示例for”、“shared示例for”“应该”、“不应该”、“单一方法”、“开始”、“开始环境”、“开始”、“开始”、“开始”、“开始”、“taguri”、“taguri=”、“污染”、“污染?”、“模板引擎”、“模板引擎”、“测试框架”、“测试框架生成器范围”、“测试?”、“to_a”、“to_enum”、“to_json”、“to_s”、“to_yaml”、“to_yaml”属性、”要使用yaml_样式、跟踪依赖项、陷阱、尝试重复、类型、卸载、使用orm、使用模板引擎、使用测试、使用测试框架、yaml_as、yaml_标记类名称、yaml_标记读取类“]

我还没有使用切片,但据我所知,它们本身就像一个迷你merb应用程序,因此不是每个切片都有一个
/config/dependencies.rb
?也许这会被解析到程序中,并在某个地方可用

可能有什么

此外,以下是Merb常量的可用方法(您可以从中获取环境等信息)。有一个名为dependentials的方法返回一个数组(当我在应用程序中使用
Merb-I
运行时,该数组为空)

>Merb.methods.sort
=>[“=”、“JSON”、“\uuuu调用者信息”、“\uuuu调用者行”、“\uuuu id\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu?“,”捆绑?“,”类“,”类“,”类评估“,”类变量“,”克隆“,”配置“,”常量定义“,”常量获取“,”常量缺失“,”常量集“,”常量“,”上下文“,”调试器“,”解码64“,”解码b“,”深度克隆“,”延迟的操作“,”依赖“,”依赖“,”描述“,”目录为“,”禁用“,”,“disabled_components”、“disabled_components=”、“display”、“dup”、“encode64”、“encoded_hash”、“enforce!”、“enum_for”、“environment”、“environment=”、“environment_info=”、“eql?”、“equal?”、“exception”、“Existing=”、“extend”、“从参数中提取_选项!”、“fatal!”、“find_const”、“forking_environment?”、“forking_环境?”、”框架根、冻结、冻结、完全常量获取、完全常量集、生成器、给定、全局for、散列、id、in、include、include、modules、inline、inspect、instance、eval、instance、method、instance、methods、instance、instance变量定义、instance变量获取、instance变量集实例变量“,”is_a?”,“is_haml?”,“j”,“jj”,“种类?”,“klass_hashes”,“klass_hashes=”,“load_config”,“load_dependencies”,“load_dependencies”,“load_dependencies”,“load_paths”,“load_paths=”,“log_path”,“log_stream”,“logger”,“make_module”,“merb”,“merge_env”,“meta_class”
>> Merb.methods.sort
=> ["<", "<=", "<=>", "==", "===", "=~", ">", ">=", "JSON", "__caller_info__", "__caller_lines__", "__id__", "__profile__", "__send__", "abstract_method", "adapter", "adapter=", "add_generators", "add_mime_type", "add_rakefiles", "ancestors", "args_and_options", "assigns", "at_exit", "at_exit_procs", "autoload", "autoload?", "available_accepts", "available_mime_types", "b64encode", "blank?", "bundled?", "class", "class_eval", "class_variable_defined?", "class_variables", "clone", "config", "const_defined?", "const_get", "const_missing", "const_set", "constants", "context", "debugger", "decode64", "decode_b", "deep_clone", "deferred_actions", "dependencies", "dependency", "describe", "dir_for", "disable", "disabled?", "disabled_components", "disabled_components=", "display", "dup", "encode64", "encoded_hash", "enforce!", "enum_for", "env", "env?", "environment", "environment=", "environment_info", "environment_info=", "eql?", "equal?", "exception", "exiting", "exiting=", "extend", "extract_options_from_args!", "fatal!", "find_const", "forking_environment?", "framework_root", "freeze", "frozen?", "full_const_get", "full_const_set", "generators", "given", "glob_for", "hash", "id", "in?", "include?", "included_modules", "inline", "inspect", "instance_eval", "instance_method", "instance_methods", "instance_of?", "instance_variable_defined?", "instance_variable_get", "instance_variable_set", "instance_variables", "is_a?", "is_haml?", "j", "jj", "kind_of?", "klass_hashes", "klass_hashes=", "load_config", "load_dependencies", "load_dependency", "load_paths", "load_paths=", "log_path", "log_stream", "logger", "make_module", "merb", "merge_env", "meta_class", "method", "method_defined?", "methods", "mime_transform_method", "module_eval", "modules", "name", "nil?", "object_id", "on_jruby?", "on_windows?", "options", "orm", "orm=", "orm_generator_scope", "present?", "print_colorized_backtrace", "private_class_method", "private_instance_methods", "private_method_defined?", "private_methods", "protected_instance_methods", "protected_method_defined?", "protected_methods", "public_class_method", "public_instance_methods", "public_method_defined?", "public_methods", "push_path", "quacks_like?", "rakefiles", "reload", "remove_mime_type", "remove_paths", "rescue_require", "reset_logger!", "respond_to?", "restart_environment", "root", "root=", "root_path", "send", "share_as", "share_examples_for", "shared_examples_for", "should", "should_not", "singleton_methods", "start", "start_environment", "started", "started=", "started?", "taguri", "taguri=", "taint", "tainted?", "template_engine", "template_engine=", "test_framework", "test_framework=", "test_framework_generator_scope", "testing?", "to_a", "to_enum", "to_json", "to_s", "to_yaml", "to_yaml_properties", "to_yaml_style", "track_dependency", "trap", "try_dup", "type", "untaint", "use_orm", "use_template_engine", "use_test", "use_testing_framework", "yaml_as", "yaml_tag_class_name", "yaml_tag_read_class"]