Class: DSL
- Inherits:
-
Object
- Object
- DSL
- Defined in:
- lib/ObjectModel/Metadata/DSL.rb
Instance Method Summary collapse
-
#initialize(klass, &block) ⇒ DSL
constructor
A new instance of DSL.
Constructor Details
#initialize(klass, &block) ⇒ DSL
Returns a new instance of DSL.
2 3 4 5 6 7 8 9 10 |
# File 'lib/ObjectModel/Metadata/DSL.rb', line 2 def initialize klass, &block @klass = klass @meta = Metadata.new klass @klass. = @meta self.instance_eval &block = klass. Metadata["metadata_checks.rb"].each{|check| check.call klass, } end |