Class: Fusion::NativeFunc
- Inherits:
-
Object
- Object
- Fusion::NativeFunc
- Defined in:
- lib/fusion.rb
Overview
A native (Ruby-implemented) function. Apply treats it like a Func.
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.
1073 1074 1075 1076 |
# File 'lib/fusion.rb', line 1073 def initialize(name, fn) @name = name @fn = fn end |
Instance Attribute Details
#fn ⇒ Object (readonly)
Returns the value of attribute fn.
1072 1073 1074 |
# File 'lib/fusion.rb', line 1072 def fn @fn end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
1072 1073 1074 |
# File 'lib/fusion.rb', line 1072 def name @name end |
Instance Method Details
#inspect ⇒ Object
1077 |
# File 'lib/fusion.rb', line 1077 def inspect = "<builtin #{name}>" |