Class: Phonology::Rule
- Inherits:
-
Object
- Object
- Phonology::Rule
- Defined in:
- lib/phonology/rule.rb
Instance Attribute Summary collapse
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
Instance Method Summary collapse
- #apply(sounds) ⇒ Object
-
#initialize(&block) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(&block) ⇒ Rule
Returns a new instance of Rule.
101 102 103 |
# File 'lib/phonology/rule.rb', line 101 def initialize(&block) @rule = block end |
Instance Attribute Details
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
99 100 101 |
# File 'lib/phonology/rule.rb', line 99 def rule @rule end |