aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/numeric
diff options
context:
space:
mode:
authorclaudiob <claudiob@gmail.com>2014-12-17 16:34:05 -0800
committerclaudiob <claudiob@gmail.com>2014-12-17 16:44:51 -0800
commit23c8f6918d4e6b9a823aa7a91377c6e3b5d60e13 (patch)
treeee02dd33238715269f8e0139d611a88df4d520df /activesupport/lib/active_support/core_ext/numeric
parent78789b7acd566562b58e73a7d4f1a11163370f32 (diff)
downloadrails-23c8f6918d4e6b9a823aa7a91377c6e3b5d60e13.tar.gz
rails-23c8f6918d4e6b9a823aa7a91377c6e3b5d60e13.tar.bz2
rails-23c8f6918d4e6b9a823aa7a91377c6e3b5d60e13.zip
Replace `#=>` with `# =>` [ci skip]
@rafaelfranca suggested in f7c7bcd9 that code examples should display the result after `# =>` and not after `#=>`. This commit replaces *all* the occurrences of `#=>` in the code documentation (mostly added by me :sob:) with the suggested `# =>`.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/numeric')
-rw-r--r--activesupport/lib/active_support/core_ext/numeric/bytes.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/numeric/bytes.rb b/activesupport/lib/active_support/core_ext/numeric/bytes.rb
index 9996320958..dfbca32474 100644
--- a/activesupport/lib/active_support/core_ext/numeric/bytes.rb
+++ b/activesupport/lib/active_support/core_ext/numeric/bytes.rb
@@ -8,7 +8,7 @@ class Numeric
# Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes
#
- # 2.bytes #=> 2
+ # 2.bytes # => 2
def bytes
self
end
@@ -16,7 +16,7 @@ class Numeric
# Returns the number of bytes equivalent to the kilobytes provided.
#
- # 2.kilobytes #=> 2048
+ # 2.kilobytes # => 2048
def kilobytes
self * KILOBYTE
end
@@ -24,7 +24,7 @@ class Numeric
# Returns the number of bytes equivalent to the megabytes provided.
#
- # 2.megabytes #=> 2_097_152
+ # 2.megabytes # => 2_097_152
def megabytes
self * MEGABYTE
end
@@ -32,7 +32,7 @@ class Numeric
# Returns the number of bytes equivalent to the gigabytes provided.
#
- # 2.gigabytes #=> 2_147_483_648
+ # 2.gigabytes # => 2_147_483_648
def gigabytes
self * GIGABYTE
end
@@ -40,7 +40,7 @@ class Numeric
# Returns the number of bytes equivalent to the terabytes provided.
#
- # 2.terabytes #=> 2_199_023_255_552
+ # 2.terabytes # => 2_199_023_255_552
def terabytes
self * TERABYTE
end
@@ -48,7 +48,7 @@ class Numeric
# Returns the number of bytes equivalent to the petabytes provided.
#
- # 2.petabytes #=> 2_251_799_813_685_248
+ # 2.petabytes # => 2_251_799_813_685_248
def petabytes
self * PETABYTE
end
@@ -56,7 +56,7 @@ class Numeric
# Returns the number of bytes equivalent to the exabytes provided.
#
- # 2.exabytes #=> 2_305_843_009_213_693_952
+ # 2.exabytes # => 2_305_843_009_213_693_952
def exabytes
self * EXABYTE
end