Skip to content

Commit 6f3e360

Browse files
Fix formatting of code example [ci-skip]
RDoc interprets indented text beneath a list item as part of that list item. Therefore, this code block was being formatted as paragraphs inside the final list item.
1 parent 0c981d6 commit 6f3e360

File tree

1 file changed

+8
-8
lines changed
  • activemodel/lib/active_model/type

1 file changed

+8
-8
lines changed

activemodel/lib/active_model/type/float.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ module Type
1515
# attribute :weight, :float
1616
# end
1717
#
18-
# Values are cast using their +to_f+ method, except for the following
19-
# strings:
20-
#
21-
# - Blank strings are cast to +nil+.
22-
# - <tt>"Infinity"</tt> is cast to +Float::INFINITY+.
23-
# - <tt>"-Infinity"</tt> is cast to <tt>-Float::INFINITY</tt>.
24-
# - <tt>"NaN"</tt> is cast to +Float::NAN+.
25-
#
2618
# bag = BagOfCoffee.new
2719
#
2820
# bag.weight = "0.25"
@@ -33,6 +25,14 @@ module Type
3325
#
3426
# bag.weight = "NaN"
3527
# bag.weight # => Float::NAN
28+
#
29+
# Values are cast using their +to_f+ method, except for the following
30+
# strings:
31+
#
32+
# - Blank strings are cast to +nil+.
33+
# - <tt>"Infinity"</tt> is cast to +Float::INFINITY+.
34+
# - <tt>"-Infinity"</tt> is cast to <tt>-Float::INFINITY</tt>.
35+
# - <tt>"NaN"</tt> is cast to +Float::NAN+.
3636
class Float < Value
3737
include Helpers::Numeric
3838

0 commit comments

Comments
 (0)