Class: Zenlish::Inflect::FunctionCall

Inherits:
AtomicOExpression show all
Defined in:
lib/zenlish/inflect/function_call.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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