Class: Zenlish::Inflect::MethodHeading

Inherits:
Heading
  • Object
show all
Defined in:
lib/zenlish/inflect/method_heading.rb

Instance Attribute Summary

Attributes inherited from Heading

#label

Instance Method Summary collapse

Methods inherited from Heading

#initialize

Constructor Details

This class inherits a constructor from Zenlish::Inflect::Heading

Instance Method Details

#all_matches(aFeatureBearer) ⇒ Object



12
13
14
# File 'lib/zenlish/inflect/method_heading.rb', line 12

def all_matches(aFeatureBearer)
  [evaluate_for(aFeatureBearer)]
end

#evaluate_for(aFeatureBearer) ⇒ Object



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

def evaluate_for(aFeatureBearer)
  aFeatureBearer.send(label)
end