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.



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

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.



186
187
188
# File 'lib/spiderfw/templates/template_blocks.rb', line 186

def init_code
  @init_code
end

#run_codeObject

Returns the value of attribute run_code.



186
187
188
# File 'lib/spiderfw/templates/template_blocks.rb', line 186

def run_code
  @run_code
end