Class: LevensteinWithPath::Delete
- 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) ⇒ Delete
constructor
A new instance of Delete.
Constructor Details
#initialize(token) ⇒ Delete
Returns a new instance of Delete.
109 110 111 |
# File 'lib/levenstein_with_path.rb', line 109 def initialize(token) @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
108 109 110 |
# File 'lib/levenstein_with_path.rb', line 108 def token @token end |
Instance Method Details
#==(other) ⇒ Object
112 113 114 |
# File 'lib/levenstein_with_path.rb', line 112 def ==(other) other.is_a?(Delete) and other.token == token end |