Top Level Namespace
Defined Under Namespace
Modules: Divine
Instance Method Summary collapse
-
#struct(name, properties = nil, &block) ⇒ Object
start to build struct.
Instance Method Details
#struct(name, properties = nil, &block) ⇒ Object
start to build struct
19 20 21 22 23 24 |
# File 'lib/divine.rb', line 19 def struct(name, properties=nil, &block) #puts "struct #{name}" builder = Divine::StructBuilder.new(name, properties) # Defined in divine/dsl.rb ::Docile.dsl_eval(builder, &block) builder end |