lib/render/text/helper/boolean.rb in render-text-helper-0.2.0 vs lib/render/text/helper/boolean.rb in render-text-helper-0.3.0

- old
+ new

@@ -16,9 +16,13 @@ 'yes'.send(casting.to_sym) else 'no'.send(casting.to_sym) end end + + def to_i + self ? 1 : 0 + end end class TrueClass include BooleanHelper end