Class: FalseClass

Inherits:
Object show all
Defined in:
lib/platform_helpers/bool.rb

Instance Method Summary collapse

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/platform_helpers/bool.rb', line 24

def empty?
  true
end

#to_boolObject



27
28
29
# File 'lib/platform_helpers/bool.rb', line 27

def to_bool
  return self
end

#to_display(params = {}) ⇒ Object



30
31
32
33
34
35
# File 'lib/platform_helpers/bool.rb', line 30

def to_display(params={})
  if params.has_key?(:na)
    return 'NA' if params[:na].to_bool
  end
  return 'No'
end