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



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

def <=>(other)
  -1
end

#==(other) ⇒ Object



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

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

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#hashObject



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

def hash
  NullGroup.hash
end

#idObject



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

def id
  nil
end

#merge(other) ⇒ Object



82
83
84
# File 'lib/trestle/navigation/group.rb', line 82

def merge(other)
  self
end

#present?Boolean

Returns:

  • (Boolean)


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

def present?
  false
end