class Synco::Command::Rotation
Attributes
path[R]
time[R]
Public Class Methods
new(path, time)
click to toggle source
# File lib/synco/command/prune.rb, line 37 def initialize(path, time) @path = path @time = time end
Public Instance Methods
<=>(other)
click to toggle source
Sort in reverse order by default
# File lib/synco/command/prune.rb, line 46 def <=> other other.time <=> @time end
eql?(other)
click to toggle source
# File lib/synco/command/prune.rb, line 50 def eql? other case other when Rotation @path.eql?(other.path) else @path.eql?(other.to_s) end end
hash()
click to toggle source
# File lib/synco/command/prune.rb, line 59 def hash @path.hash end
to_s()
click to toggle source
# File lib/synco/command/prune.rb, line 63 def to_s @path end