Flowdock
method

num_pattern?

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Date

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_2_180) is shown here.

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.