Class: Fusion::Interpreter::NativeFunc
- Inherits:
-
Object
- Object
- Fusion::Interpreter::NativeFunc
- Defined in:
- lib/fusion/interpreter/native_func.rb
Instance Attribute Summary collapse
-
#fn ⇒ Object
readonly
Returns the value of attribute fn.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, fn) ⇒ NativeFunc
constructor
A new instance of NativeFunc.
- #inspect ⇒ Object
Constructor Details
#initialize(name, fn) ⇒ NativeFunc
Returns a new instance of NativeFunc.
12 13 14 15 |
# File 'lib/fusion/interpreter/native_func.rb', line 12 def initialize(name, fn) @name = name @fn = fn end |
Instance Attribute Details
#fn ⇒ Object (readonly)
Returns the value of attribute fn.
10 11 12 |
# File 'lib/fusion/interpreter/native_func.rb', line 10 def fn @fn end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/fusion/interpreter/native_func.rb', line 10 def name @name end |
Instance Method Details
#inspect ⇒ Object
17 18 19 |
# File 'lib/fusion/interpreter/native_func.rb', line 17 def inspect "<builtin #{name}>" end |