Sha256: c942ab091f498bbed54f542debd6c7c297eda5cda98b4a11e5ce8be7cfdf4a23

Contents?: true

Size: 351 Bytes

Versions: 5

Compression:

Stored size: 351 Bytes

Contents

require_relative 'atomic_o_expression'

module Zenlish
  module Inflect
    class FunctionCall < AtomicOExpression
      attr_reader :mth_name

      def initialize(aMethodName)
        @mth_name = aMethodName
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zenlish-0.2.05 lib/zenlish/inflect/function_call.rb
zenlish-0.2.04 lib/zenlish/inflect/function_call.rb
zenlish-0.2.03 lib/zenlish/inflect/function_call.rb
zenlish-0.2.02 lib/zenlish/inflect/function_call.rb
zenlish-0.2.01 lib/zenlish/inflect/function_call.rb