In Files

Parent

Files

Class/Module Index [+]

Quicksearch

Numeric

Public Instance Methods

day() click to toggle source

Public: Units of days (86400 seconds).

Alias for: days
days() click to toggle source

Public: Units of days (86400 seconds).

# File lib/god/sugar.rb, line 27
def days
  self * 86400
end
Also aliased as: day
gigabyte() click to toggle source

Units of gigabytes (1,048,576 kilobytes).

Alias for: gigabytes
gigabytes() click to toggle source

Units of gigabytes (1,048,576 kilobytes).

# File lib/god/sugar.rb, line 51
def gigabytes
  self * (1024 ** 2)
end
Also aliased as: gigabyte
hour() click to toggle source

Public: Units of hours (3600 seconds).

Alias for: hours
hours() click to toggle source

Public: Units of hours (3600 seconds).

# File lib/god/sugar.rb, line 19
def hours
  self * 3600
end
Also aliased as: hour
kilobyte() click to toggle source

Units of kilobytes.

Alias for: kilobytes
kilobytes() click to toggle source

Units of kilobytes.

# File lib/god/sugar.rb, line 35
def kilobytes
  self
end
Also aliased as: kilobyte
megabyte() click to toggle source

Units of megabytes (1024 kilobytes).

Alias for: megabytes
megabytes() click to toggle source

Units of megabytes (1024 kilobytes).

# File lib/god/sugar.rb, line 43
def megabytes
  self * 1024
end
Also aliased as: megabyte
minute() click to toggle source

Public: Units of minutes (60 seconds).

Alias for: minutes
minutes() click to toggle source

Public: Units of minutes (60 seconds).

# File lib/god/sugar.rb, line 11
def minutes
  self * 60
end
Also aliased as: minute
percent() click to toggle source

Units of percent. e.g. 50.percent.

# File lib/god/sugar.rb, line 59
def percent
  self
end
second() click to toggle source

Public: Units of seconds.

Alias for: seconds
seconds() click to toggle source

Public: Units of seconds.

# File lib/god/sugar.rb, line 3
def seconds
  self
end
Also aliased as: second

[Validate]

Generated with the Darkfish Rdoc Generator 2.