Class: Float

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

Instance Method Summary collapse

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/platform_helpers/float.rb', line 8

def empty?
  false
end

#to_boolObject



15
16
17
18
19
20
21
# File 'lib/platform_helpers/float.rb', line 15

def to_bool
  if self > 0.0
    return true
  else
    return false
  end
end

#to_display(params = {}) ⇒ Object



11
12
13
# File 'lib/platform_helpers/float.rb', line 11

def to_display(params={})
  self.to_s
end