Class: Swaggable::TagDefinition

Inherits:
Object
  • Object
show all
Includes:
DefinitionBase
Defined in:
lib/swaggable/tag_definition.rb

Instance Method Summary collapse

Methods included from DefinitionBase

included, #initialize

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



12
13
14
# File 'lib/swaggable/tag_definition.rb', line 12

def == other
  self.name == other.name if other.respond_to?(:name)
end

#hashObject



17
18
19
# File 'lib/swaggable/tag_definition.rb', line 17

def hash
  name.hash
end