Class: Code::Object::RubyFunction

Inherits:
Function show all
Defined in:
lib/code/object/ruby_function.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Function

#call, #inspect, #to_s

Methods inherited from Code::Object

#<=>, #==, #call, #falsy?, #hash, #to_s, #truthy?

Constructor Details

#initialize(raw) ⇒ RubyFunction

Returns a new instance of RubyFunction.



6
7
8
# File 'lib/code/object/ruby_function.rb', line 6

def initialize(raw)
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



4
5
6
# File 'lib/code/object/ruby_function.rb', line 4

def raw
  @raw
end