Class: BCDD::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/bcdd/ext/value.rb

Defined Under Namespace

Classes: Object, Properties, Registry

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object



137
138
139
# File 'lib/bcdd/ext/value.rb', line 137

def self.[](name)
  Registry.read(name)
end

.new(**options) ⇒ Object



131
132
133
134
135
# File 'lib/bcdd/ext/value.rb', line 131

def self.new(**options)
  klass = ::Class.new(Object)
  klass.const_set(:Properties, Properties.new(options).freeze)
  klass
end