Parent

Included Modules

Benelux::Mark

Attributes

name[RW]

Public Class Methods

now(n=nil) click to toggle source
# File lib/benelux/mark.rb, line 5
def self.now(n=nil)
  v = super()
  v.tags = Selectable::Tags.new
  v.name = n 
  v
end

Public Instance Methods

==(other) click to toggle source
# File lib/benelux/mark.rb, line 25
def ==(other)
  self.name == other.name &&
  self.tags == other.tags &&
  self.to_f == self.to_f
end
distance(time) click to toggle source
# File lib/benelux/mark.rb, line 22
def distance(time)
  self - time
end
inspect(reftime=nil) click to toggle source
# File lib/benelux/mark.rb, line 14
def inspect(reftime=nil)
  val = reftime.nil? ? self : (reftime - self)
  "#<%s:%s at=%f name=%s %s>" % [self.class, hexoid, to_f, name, tags]
end
to_s(reftime=nil) click to toggle source
# File lib/benelux/mark.rb, line 18
def to_s(reftime=nil)
  val = reftime.nil? ? self : (reftime - self)
  val.to_f.to_s
end
track() click to toggle source
# File lib/benelux/mark.rb, line 11
def track 
  @tags[:track]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.