Method: Puppet::Pops::Time::TimeData#to_r

Defined in:
lib/puppet/pops/time/timespan.rb

#to_rRational

Returns initial numerator is nano-seconds and denominator is nano-seconds per second.

Returns:

  • (Rational)

    initial numerator is nano-seconds and denominator is nano-seconds per second



70
71
72
# File 'lib/puppet/pops/time/timespan.rb', line 70

def to_r
  Rational(@nsecs, NSECS_PER_SEC)
end