Class: Jisota::FileScript::DSL
- Defined in:
- lib/jisota/file_script.rb
Instance Method Summary collapse
- #create(value = nil, &block) ⇒ Object
-
#initialize(target) ⇒ DSL
constructor
A new instance of DSL.
- #update(value = nil, &block) ⇒ Object
Methods inherited from DSLBase
Constructor Details
#initialize(target) ⇒ DSL
Returns a new instance of DSL.
27 28 29 |
# File 'lib/jisota/file_script.rb', line 27 def initialize(target) @target = target end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Jisota::DSLBase
Instance Method Details
#create(value = nil, &block) ⇒ Object
31 32 33 |
# File 'lib/jisota/file_script.rb', line 31 def create(value = nil, &block) set_callback(:create=, value, &block) end |
#update(value = nil, &block) ⇒ Object
35 36 37 |
# File 'lib/jisota/file_script.rb', line 35 def update(value = nil, &block) set_callback(:update=, value, &block) end |