class Chic::Formatters::Nil
Constants
- BLANK_VALUE
Public Instance Methods
blank_value(value)
click to toggle source
# File lib/chic/formatters/nil.rb, line 8 def blank_value(value) @blank_value = value self end
to_s()
click to toggle source
# File lib/chic/formatters/nil.rb, line 13 def to_s value.blank? ? (@blank_value || BLANK_VALUE) : value end
Private Instance Methods
value()
click to toggle source
# File lib/chic/formatters/nil.rb, line 19 def value object.to_s end