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/numeric.rb,
lib/active_support/core_ext/duplicable.rb,
lib/active_support/core_ext/object/blank.rb,
lib/active_support/json/encoders/numeric.rb

Overview

:nodoc:

Constant Summary

Constants included from ActiveSupport::CoreExtensions::Numeric::Bytes

ActiveSupport::CoreExtensions::Numeric::Bytes::EXABYTE, ActiveSupport::CoreExtensions::Numeric::Bytes::GIGABYTE, ActiveSupport::CoreExtensions::Numeric::Bytes::KILOBYTE, ActiveSupport::CoreExtensions::Numeric::Bytes::MEGABYTE, ActiveSupport::CoreExtensions::Numeric::Bytes::PETABYTE, ActiveSupport::CoreExtensions::Numeric::Bytes::TERABYTE

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, #seconds, #since, #weeks

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



6
7
8
# File 'lib/active_support/json/encoders/numeric.rb', line 6

def as_json(options = nil) #:nodoc:
  self
end

#blank?Boolean

Returns:

  • (Boolean)


73
74
75
# File 'lib/active_support/core_ext/object/blank.rb', line 73

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