Class: Nil
Instance Method Summary collapse
Instance Method Details
#empty? ⇒ Boolean
8 9 10 |
# File 'lib/platform_helpers/nil.rb', line 8 def empty? return true end |
#to_bool ⇒ Object
17 18 19 |
# File 'lib/platform_helpers/nil.rb', line 17 def to_bool return false end |
#to_display(params = {}) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/platform_helpers/nil.rb', line 21 def to_display(params={}) if params.has_key?(:na) if params[:na] return 'NA' else return self.to_bool end else return self.to_bool end end |
#to_f ⇒ Object
14 15 16 |
# File 'lib/platform_helpers/nil.rb', line 14 def to_f return 0.0 end |
#to_i ⇒ Object
11 12 13 |
# File 'lib/platform_helpers/nil.rb', line 11 def to_i return 0 end |