Class: Neography::Composable::NeographyContext

Inherits:
Object
  • Object
show all
Includes:
Rest::Helpers
Defined in:
lib/neography-batch/neography_context.rb

Instance Method Summary collapse

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