Module: Ditto::DSL
- Defined in:
- lib/ditto/dsl.rb
Instance Method Summary collapse
Instance Method Details
#check!(*args, &block) ⇒ Object
8 9 10 11 |
# File 'lib/ditto/dsl.rb', line 8 def check! (*args, &block) nerr = Ditto::Entity.check(*args, &block) exit(nerr) end |
#entity(*args, &block) ⇒ Object
5 6 7 |
# File 'lib/ditto/dsl.rb', line 5 def entity (*args, &block) Ditto::Entity.define_entity(*args, &block) end |