Class: Neography::Composable::NeographyContext
- Inherits:
-
Object
- Object
- Neography::Composable::NeographyContext
- Includes:
- Rest::Helpers
- Defined in:
- lib/neography-batch/neography_context.rb
Instance Method Summary collapse
- #eval(result) ⇒ Object
-
#initialize(&block) ⇒ NeographyContext
constructor
A new instance of NeographyContext.
Constructor Details
#initialize(&block) ⇒ NeographyContext
Returns a new instance of NeographyContext.
6 7 8 |
# File 'lib/neography-batch/neography_context.rb', line 6 def initialize(&block) @block = block end |
Instance Method Details
#eval(result) ⇒ Object
11 12 13 |
# File 'lib/neography-batch/neography_context.rb', line 11 def eval(result) instance_exec(result, &@block) end |