class Group
Attributes
key[R]
Public Class Methods
new(key, enumerator)
click to toggle source
Calls superclass method
Sequence::new
# File lib/totally_lazy/sequence.rb, line 357 def initialize(key, enumerator) super(enumerator) @key = key end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/totally_lazy/sequence.rb, line 362 def <=>(other) (@key <=> other.key) <=> (enumerator.entries<=>(other.enumerator.entries)) end