Class: Jisota::FileScript::DSL

Inherits:
DSLBase
  • Object
show all
Defined in:
lib/jisota/file_script.rb

Instance Method Summary collapse

Methods inherited from DSLBase

#evaluate, #method_missing

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