Class: DB::MariaDB::Native::Types::Float
- Inherits:
-
Object
- Object
- DB::MariaDB::Native::Types::Float
- Defined in:
- lib/db/mariadb/native/types.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = "FLOAT") ⇒ Float
constructor
A new instance of Float.
- #parse(string) ⇒ Object
Constructor Details
#initialize(name = "FLOAT") ⇒ Float
Returns a new instance of Float.
82 83 84 |
# File 'lib/db/mariadb/native/types.rb', line 82 def initialize(name = "FLOAT") @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
86 87 88 |
# File 'lib/db/mariadb/native/types.rb', line 86 def name @name end |
Instance Method Details
#parse(string) ⇒ Object
88 89 90 |
# File 'lib/db/mariadb/native/types.rb', line 88 def parse(string) Float(string) if string end |