Methods

Files

Class/Module Index [+]

Quicksearch

ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Float

Public Instance Methods

type() click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 262
def type; :float end
type_cast(value) click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 264
def type_cast(value)
  case value
    when nil;         nil
    when 'Infinity';  ::Float::INFINITY
    when '-Infinity'; -::Float::INFINITY
    when 'NaN';       ::Float::NAN
  else
    value.to_f
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.