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



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

def <=>(other)
  -1
end

#==(other) ⇒ Object



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

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

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#hashObject



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

def hash
  NullGroup.hash
end

#idObject



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

def id
  nil
end

#merge(other) ⇒ Object



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

def merge(other)
  self
end

#present?Boolean

Returns:

  • (Boolean)


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

def present?
  false
end