blank?

blank?() Instance Public methods An object is blank if it's false, empty, or a whitespace string. For example, '', ' ', nil, [], and {} are all blank. This simplifies address.nil? || address.empty? to address.blank? @return [true, false]

attribute

attribute(name) Instance Public methods

acts_like?

acts_like?(duck) Instance Public methods A duck-type assistant method. For example, Active Support extends Date to define an acts_like_date? method, and extends Time to define acts_like_time?. As a result, we can do x.acts_like?(:time) and x.acts_like?(:date) to do duck-type-safe comparisons, since classes that we want to act like Time simply need to define an acts_like_time? method.

weeks

weeks() Instance Public methods Also aliased as: week

week

week() Instance Public methods Alias for: weeks

until

until(time = ::Time.current) Instance Public methods Reads best with argument: 10.minutes.until(time) ago

to_formatted_s

to_formatted_s(format = :default, options = {}) Instance Public methods Provides options for converting numbers into formatted strings. Options are provided for phone numbers, currency, percentage, precision, positional notation, file size and pretty printing. Options For details on which formats use which options, see ActiveSupport::NumberHelper Examples Phone Numbers: 5551234.to_s(:phone) # => 555-1234 1235551234.to_s(:phone)

terabytes

terabytes() Instance Public methods Also aliased as: terabyte

terabyte

terabyte() Instance Public methods Alias for: terabytes

since

since(time = ::Time.current) Instance Public methods Reads best with argument: 10.minutes.since(time) from_now