Method: Ceres::Attribute::DSL#initialize
- Defined in:
- lib/ceres/attribute.rb
#initialize(object, &block) ⇒ DSL
Returns a new instance of DSL.
49 50 51 52 53 |
# File 'lib/ceres/attribute.rb', line 49 def initialize(object, &block) @object = object self.instance_exec(&block) if block end |