Class: Numeric

Inherits:
Object show all
Includes:
ActiveSupport::CoreExtensions::Numeric::Bytes, ActiveSupport::CoreExtensions::Numeric::Conversions, ActiveSupport::CoreExtensions::Numeric::Time
Defined in:
lib/active_support/core_ext/blank.rb,
lib/active_support/core_ext/numeric.rb,
lib/active_support/core_ext/duplicable.rb,
lib/active_support/json/encoders/numeric.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from ActiveSupport::CoreExtensions::Numeric::Conversions

#to_utc_offset_s

Methods included from ActiveSupport::CoreExtensions::Numeric::Bytes

#bytes, #exabytes, #gigabytes, #kilobytes, #megabytes, #petabytes, #terabytes

Methods included from ActiveSupport::CoreExtensions::Numeric::Time

#ago, #days, #fortnights, #hours, #minutes, #months, #seconds, #since, #weeks, #years

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)

50
51
52
# File 'lib/active_support/core_ext/blank.rb', line 50

def blank?
  false
end

#duplicable?Boolean

Returns:

  • (Boolean)

34
35
36
# File 'lib/active_support/core_ext/duplicable.rb', line 34

def duplicable?
  false
end

#to_json(options = nil) ⇒ Object

:nodoc:


2
3
4
# File 'lib/active_support/json/encoders/numeric.rb', line 2

def to_json(options = nil) #:nodoc:
  to_s
end