Sha256: adecbea65088c733038a13b46b68190f31cc979d26f5ab1973fcccea6ddf575c
Contents?: true
Size: 268 Bytes
Versions: 3
Compression:
Stored size: 268 Bytes
Contents
module Rednode module Namespace def [](name) begin self.class.const_defined?(name) ? self.class.const_get(name) : yield rescue NameError => e yield end end end module Bindings Namespace = Rednode::Namespace end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rednode-0.1.2 | lib/rednode/namespace.rb |
rednode-0.1.1 | lib/rednode/namespace.rb |
rednode-0.1.0 | lib/rednode/namespace.rb |