Class: OCI8::BindType::Rational

Inherits:
OraNumber show all
Defined in:
lib/oci8/bindtype.rb

Constant Summary collapse

@@rational_is_required =
false

Instance Method Summary collapse

Methods inherited from Base

create, #set

Instance Method Details

#getObject



41
42
43
44
45
46
47
# File 'lib/oci8/bindtype.rb', line 41

def get()
  unless @@rational_is_required
    require 'rational'
    @@rational_is_required = true
  end
  (val = super()) && val.to_r
end