Sha256: 4935d6f6d7bb43e4c7bad8dad4dc81b91e5c732002327d302a9b462e1464beb8

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

require_relative 'heading'

module Zenlish
  module Inflect
    class MethodHeading < Heading

      def initialize(aLabel)
        super(aLabel)
      end
      
      def evaluate_for(aFeatureBearer)
        aFeatureBearer.send(label)
      end

      def all_matches(aFeatureBearer)
        [evaluate_for(aFeatureBearer)]
      end      
    end # class
  end # module
end # module

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zenlish-0.2.05 lib/zenlish/inflect/method_heading.rb