Module: Ditto::DSL
- Defined in:
- lib/ditto/dsl.rb
Instance Method Summary collapse
- #add(name, opts = {}, &block) ⇒ Object
- #entity(*args, &block) ⇒ Object
- #version(*args, &block) ⇒ Object
Instance Method Details
#add(name, opts = {}, &block) ⇒ Object
14 15 16 |
# File 'lib/ditto/dsl.rb', line 14 def add (name, opts = {}, &block) Ditto::Map.add name, opts, &block end |
#entity(*args, &block) ⇒ Object
11 12 13 |
# File 'lib/ditto/dsl.rb', line 11 def entity (*args, &block) Ditto::Entity.define_entity(*args, &block) end |
#version(*args, &block) ⇒ Object
8 9 10 |
# File 'lib/ditto/dsl.rb', line 8 def version (*args, &block) Ditto::Entity.set_version(*args, &block) end |