README.md in open_namespace-0.2.0 vs README.md in open_namespace-0.3.0
- old
+ new
@@ -25,40 +25,41 @@
module Plugins
include OpenNamespace
end
end
- # explicit loading of constants
+ # explicitly load constants
Project::Plguins.require_const :foo_bar
# => Project::Plugins::FooBar
- # explicitly loading constants via sub-paths
+ # explicitly load constants with odd capitalization
+ Project::Plugins.require_const :tcp_session
+ # => Project::Plugins::TCPSession
+
+ # explicitly load constants via sub-paths
Project::Plguins.require_const 'templates/erb'
# => Project::Plugins::Templates::Erb
- # implicit loading of constants via const_missing
+ # implicitly load constants via const_missing
Project::Plugins::Other
# => Project::Plugins::Other
-Loading constants from alternate namespaces / directories:
+Loading constants from alternate namespace root directories:
module Project
module UI
module CommandLine
- include OpenNamespace
+ module Commands
+ include OpenNamespace
- self.namespace = 'Project::UI::CommandLine::Commands'
- self.namespace_root = File.join('project','ui','command_line','commands')
+ self.namespace_root = File.join('project','ui','command_line','commands')
+ end
end
end
end
- Project::UI::CommandLine.require_const :help
+ Project::UI::CommandLine::Commands.require_const :help
# => Project::UI::CommandLine::Commands::Help
-
-## Requirements
-
-* [extlib](http://gemcutter.org/gems/extlib) >= 0.9.14
## Install
$ sudo gem install open_namespace