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

Constructor Details

#initialize(aLabel) ⇒ MethodHeading

Returns a new instance of MethodHeading.



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

def initialize(aLabel)
  super(aLabel)
end

Instance Method Details

#evaluate_for(aFeatureBearer) ⇒ Object



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

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