Class: Code::Object::RubyFunction
- Inherits:
-
Function
- Object
- Code::Object
- Function
- Code::Object::RubyFunction
- Defined in:
- lib/code/object/ruby_function.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(raw) ⇒ RubyFunction
constructor
A new instance of RubyFunction.
Methods inherited from Function
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
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
4 5 6 |
# File 'lib/code/object/ruby_function.rb', line 4 def raw @raw end |