Class: Spider::TemplateBlocks::CompiledBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/spiderfw/templates/template_blocks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(init_code, run_code) ⇒ CompiledBlock

Returns a new instance of CompiledBlock.



192
193
194
195
# File 'lib/spiderfw/templates/template_blocks.rb', line 192

def initialize(init_code, run_code)
    @init_code = init_code
    @run_code = run_code
end

Instance Attribute Details

#init_codeObject

Returns the value of attribute init_code.



190
191
192
# File 'lib/spiderfw/templates/template_blocks.rb', line 190

def init_code
  @init_code
end

#run_codeObject

Returns the value of attribute run_code.



190
191
192
# File 'lib/spiderfw/templates/template_blocks.rb', line 190

def run_code
  @run_code
end