class Zenlish::Inflect::InputAsIs
Attributes
formal[R]
Public Class Methods
new(anArgument)
click to toggle source
Calls superclass method
# File lib/zenlish/inflect/input_asis.rb, line 10 def initialize(anArgument) super() @formal = anArgument end
Public Instance Methods
generate(headings, lexeme, actuals)
click to toggle source
# File lib/zenlish/inflect/input_asis.rb, line 15 def generate(headings, lexeme, actuals) if actuals.empty? hd = headings[formal.index] hd.evaluate_for(lexeme) else actuals[formal.index] end end