Class: GoodGuide::Gibbon::Runner
- Inherits:
- BasicObject
- Defined in:
- lib/goodguide/gibbon.rb
Constant Summary collapse
- E =
::GoodGuide::Gibbon::RuntimeError
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ Runner
constructor
A new instance of Runner.
- #run!(client, global_id) ⇒ Object
Constructor Details
#initialize(source) ⇒ Runner
198 199 200 201 202 203 204 205 206 207 |
# File 'lib/goodguide/gibbon.rb', line 198 def initialize(source) @source = source (class << self; self; end).class_eval " private\n def __compiled_run!(__client, __global)\n \#{source}\n end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
197 198 199 |
# File 'lib/goodguide/gibbon.rb', line 197 def source @source end |
Instance Method Details
#run!(client, global_id) ⇒ Object
209 210 211 |
# File 'lib/goodguide/gibbon.rb', line 209 def run!(client, global_id) __compiled_run!(client, global_id) end |