Class: LevensteinWithPath::Insert

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

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