The DSL
Requires that the class into which this is included has a add_attributes! method
# File lib/cimi/model/schema.rb, line 257 def array(name, opts={}, &block) add_attributes!([name, opts], Array, &block) end
# File lib/cimi/model/schema.rb, line 265 def hash(name, opts={}, &block) add_attributes!([name, opts], Hash, &block) end
# File lib/cimi/model/schema.rb, line 244 def href(*args) args.each { |arg| struct(arg) { scalar :href } } end
# File lib/cimi/model/schema.rb, line 253 def scalar(*args) add_attributes!(args, Scalar) end
Generated with the Darkfish Rdoc Generator 2.