Class: Spider::TemplateBlocks::CompiledBlock
- Defined in:
- lib/spiderfw/templates/template_blocks.rb
Instance Attribute Summary collapse
-
#init_code ⇒ Object
Returns the value of attribute init_code.
-
#run_code ⇒ Object
Returns the value of attribute run_code.
Instance Method Summary collapse
-
#initialize(init_code, run_code) ⇒ CompiledBlock
constructor
A new instance of CompiledBlock.
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_code ⇒ Object
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_code ⇒ Object
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 |