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.
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_code ⇒ Object
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_code ⇒ Object
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 |