Class: JLDrill::Deinflection::Transform
- Inherits:
-
Object
- Object
- JLDrill::Deinflection::Transform
- Defined in:
- lib/jldrill/model/DeinflectionRules.rb
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
Class Method Summary collapse
Instance Method Summary collapse
- #dictionary ⇒ Object
-
#initialize(orig, root, rule) ⇒ Transform
constructor
A new instance of Transform.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
58 59 60 |
# File 'lib/jldrill/model/DeinflectionRules.rb', line 58 def original @original end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
58 59 60 |
# File 'lib/jldrill/model/DeinflectionRules.rb', line 58 def root @root end |
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
58 59 60 |
# File 'lib/jldrill/model/DeinflectionRules.rb', line 58 def rule @rule end |
Class Method Details
Instance Method Details
#dictionary ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/jldrill/model/DeinflectionRules.rb', line 70 def dictionary retVal = @root if !@rule.nil? retVal = @root + @rule.replaceWith end return retVal end |
#to_s ⇒ Object
78 79 80 |
# File 'lib/jldrill/model/DeinflectionRules.rb', line 78 def to_s @orignal + " " + @root + " " + @rule.to_s end |