Class: Numeric
- Includes:
- ActiveSupport::CoreExtensions::Numeric::Bytes, ActiveSupport::CoreExtensions::Numeric::Conversions, ActiveSupport::CoreExtensions::Numeric::Time
- Defined in:
- lib/gems/extlib-0.9.9/lib/extlib/blank.rb,
lib/gems/extlib-0.9.9/lib/extlib/numeric.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/blank.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/numeric.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/duplicable.rb,
lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/numeric.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#blank? ⇒ FalseClass
Numerics are never blank.
- #duplicable? ⇒ Boolean
-
#to_json(options = nil) ⇒ Object
:nodoc:.
- #try_dup ⇒ Object
Methods included from ActiveSupport::CoreExtensions::Numeric::Conversions
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
#blank? ⇒ FalseClass
Numerics are never blank
0.blank? #=> false
1.blank? #=> false
6.54321.blank? #=> false
28 29 30 |
# File 'lib/gems/extlib-0.9.9/lib/extlib/blank.rb', line 28 def blank? false end |
#duplicable? ⇒ Boolean
34 35 36 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/duplicable.rb', line 34 def duplicable? false end |
#to_json(options = nil) ⇒ Object
:nodoc:
2 3 4 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/numeric.rb', line 2 def to_json( = nil) #:nodoc: to_s end |
#try_dup ⇒ Object
2 3 4 |
# File 'lib/gems/extlib-0.9.9/lib/extlib/numeric.rb', line 2 def try_dup self end |