class Stepdown::Step
Attributes
count[RW]
id[R]
regex[R]
Public Class Methods
new(id, regex)
click to toggle source
# File lib/stepdown/step.rb, line 7 def initialize(id, regex) @id = id @regex = regex @count = 0 end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/stepdown/step.rb, line 13 def <=>(other) other.count <=> self.count end
==(other)
click to toggle source
# File lib/stepdown/step.rb, line 17 def ==(other) self.id == other.id end
to_s()
click to toggle source
# File lib/stepdown/step.rb, line 21 def to_s regex.inspect.to_s end