Class: Sbuilder::Ial::Model::PropertyBuilder
- Inherits:
-
Object
- Object
- Sbuilder::Ial::Model::PropertyBuilder
- Defined in:
- lib/model/model_dsl.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
282 283 284 285 286 287 |
# File 'lib/model/model_dsl.rb', line 282 def build prop = Property.new( :property, @name ) prop.domain = @domain prop.definition = @definition prop end |
#definition(v = nil) ⇒ Object
274 275 276 277 |
# File 'lib/model/model_dsl.rb', line 274 def definition(v=nil) @definition= v.is_a?( String ) ? Sbuilder::Ial.definition{ name v } : v self end |
#domain(v = nil) ⇒ Object
278 279 280 281 |
# File 'lib/model/model_dsl.rb', line 278 def domain(v=nil) @domain= v.is_a?( String ) ? Sbuilder::Ial.domain{ name v } : v self end |
#name(v = nil) ⇒ Object
273 |
# File 'lib/model/model_dsl.rb', line 273 def name(v=nil); @name=v; self;end |