Class: LevensteinWithPath::Insert
- Defined in:
- lib/levenstein_with_path.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(token) ⇒ Insert
constructor
A new instance of Insert.
Constructor Details
#initialize(token) ⇒ Insert
Returns a new instance of Insert.
119 120 121 |
# File 'lib/levenstein_with_path.rb', line 119 def initialize(token) @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
118 119 120 |
# File 'lib/levenstein_with_path.rb', line 118 def token @token end |
Instance Method Details
#==(other) ⇒ Object
122 123 124 |
# File 'lib/levenstein_with_path.rb', line 122 def ==(other) other.is_a?(Edit) and other.token == token end |