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



74
75
76
# File 'lib/trestle/navigation/group.rb', line 74

def <=>(other)
  -1
end

#==(other) ⇒ Object



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

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

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#hashObject



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

def hash
  NullGroup.hash
end

#idObject



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

def id
  nil
end

#merge(other) ⇒ Object



78
79
80
# File 'lib/trestle/navigation/group.rb', line 78

def merge(other)
  self
end

#present?Boolean

Returns:

  • (Boolean)


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

def present?
  false
end