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.



10
11
12
13
# File 'lib/zenlish/inflect/function_call.rb', line 10

def initialize(aMethodName)
  super()
  @mth_name = aMethodName
end

Instance Attribute Details

#mth_nameObject (readonly)

Returns the value of attribute mth_name.



8
9
10
# File 'lib/zenlish/inflect/function_call.rb', line 8

def mth_name
  @mth_name
end

Instance Method Details

#generate(_headings, lexeme, _values) ⇒ Object



15
16
17
# File 'lib/zenlish/inflect/function_call.rb', line 15

def generate(_headings, lexeme, _values)
  lexeme.send(mth_name)
end