Method: Konfig::Evaluator#run

Defined in:
lib/konfig/evaluator.rb

#run(code) ⇒ Object

Runs a code fragment

Parameters:

  • code (String)

    some valid ruby code

Returns:

  • the results of the eval



18
19
20
# File 'lib/konfig/evaluator.rb', line 18

def run(code)
  eval(code, binding)
end