Class: LevensteinWithPath::Keep

Inherits:
Edit
  • Object
show all
Defined in:
lib/levenstein_with_path.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tokenObject (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