Class: Trestle::Navigation::NullGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/trestle/navigation/group.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



70
71
72
# File 'lib/trestle/navigation/group.rb', line 70

def <=>(other)
  -1
end

#==(other) ⇒ Object



54
55
56
# File 'lib/trestle/navigation/group.rb', line 54

def ==(other)
  other.is_a?(NullGroup)
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/trestle/navigation/group.rb', line 58

def eql?(other)
  other.is_a?(NullGroup)
end

#hashObject



62
63
64
# File 'lib/trestle/navigation/group.rb', line 62

def hash
  NullGroup.hash
end

#idObject



66
67
68
# File 'lib/trestle/navigation/group.rb', line 66

def id
  nil
end

#present?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/trestle/navigation/group.rb', line 50

def present?
  false
end