Class: Zenlish::Inflect::FunctionCall
- Inherits:
-
AtomicOExpression
- Object
- OutputExpression
- AtomicOExpression
- Zenlish::Inflect::FunctionCall
- Defined in:
- lib/zenlish/inflect/function_call.rb
Instance Attribute Summary collapse
-
#mth_name ⇒ Object
readonly
Returns the value of attribute mth_name.
Instance Method Summary collapse
- #generate(_headings, lexeme, _values) ⇒ Object
-
#initialize(aMethodName) ⇒ FunctionCall
constructor
A new instance of FunctionCall.
Constructor Details
#initialize(aMethodName) ⇒ FunctionCall
Returns a new instance of FunctionCall.
8 9 10 |
# File 'lib/zenlish/inflect/function_call.rb', line 8 def initialize(aMethodName) @mth_name = aMethodName end |
Instance Attribute Details
#mth_name ⇒ Object (readonly)
Returns the value of attribute mth_name.
6 7 8 |
# File 'lib/zenlish/inflect/function_call.rb', line 6 def mth_name @mth_name end |
Instance Method Details
#generate(_headings, lexeme, _values) ⇒ Object
12 13 14 |
# File 'lib/zenlish/inflect/function_call.rb', line 12 def generate(_headings, lexeme, _values) lexeme.send(mth_name) end |