Class: BCDD::Data
- Inherits:
-
Object
show all
- Defined in:
- lib/bcdd/ext/data.rb
Defined Under Namespace
Classes: Evaluator, Object, Properties
Class Method Summary
collapse
Class Method Details
.new(&block) ⇒ Object
85
86
87
88
89
90
91
92
|
# File 'lib/bcdd/ext/data.rb', line 85
def self.new(&block)
evaluator = Evaluator.new
evaluator.instance_eval(&block)
klass = ::Class.new(Object)
klass.const_set(:Properties, evaluator.properties.freeze)
klass
end
|