Class: LevensteinWithPath::Delete

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) ⇒ 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

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