Flowdock
method

num_pattern?

Importance_1
num_pattern?(s) private

def beat(n=0)

i, f = (new_offset(HOURS_IN_DAY).day_fraction * 1000).divmod(1)
('@%03d' % i) +
  if n < 1
    ''
  else
    '.%0*d' % [n, (f / Rational(1, 10**n)).round]
  end

end

Show source
Register or log in to add new notes.