Class: NilClass
Instance Method Summary collapse
Instance Method Details
#empty? ⇒ Boolean
35 36 37 |
# File 'lib/platform_helpers/nil.rb', line 35 def empty? return true end |
#to_bool ⇒ Object
57 58 59 |
# File 'lib/platform_helpers/nil.rb', line 57 def to_bool return false end |
#to_display(params = {}) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/platform_helpers/nil.rb', line 39 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
54 55 56 |
# File 'lib/platform_helpers/nil.rb', line 54 def to_f return 0.0 end |
#to_i ⇒ Object
51 52 53 |
# File 'lib/platform_helpers/nil.rb', line 51 def to_i return 0 end |