Class: LevensteinWithPath::Keep
- 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) ⇒ Keep
constructor
A new instance of Keep.
Constructor Details
#initialize(token) ⇒ Keep
Returns a new instance of Keep.
99 100 101 |
# File 'lib/levenstein_with_path.rb', line 99 def initialize(token) @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
98 99 100 |
# File 'lib/levenstein_with_path.rb', line 98 def token @token end |
Instance Method Details
#==(other) ⇒ Object
102 103 104 |
# File 'lib/levenstein_with_path.rb', line 102 def ==(other) other.is_a?(Keep) and other.token == token end |