Method: Code::Object::String#code_to_function

Defined in:
lib/code/object/string.rb

#code_to_function(**_globals) ⇒ Object



68
69
70
# File 'lib/code/object/string.rb', line 68

def code_to_function(**_globals)
  Function.new([{ name: "_" }], "_.#{raw}")
end