Class: Innodb::DataType::VariableBinaryType
- Inherits:
-
Object
- Object
- Innodb::DataType::VariableBinaryType
- Defined in:
- lib/innodb/data_type.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(base_type, modifiers, properties) ⇒ VariableBinaryType
constructor
A new instance of VariableBinaryType.
Constructor Details
#initialize(base_type, modifiers, properties) ⇒ VariableBinaryType
Returns a new instance of VariableBinaryType.
236 237 238 239 240 241 |
# File 'lib/innodb/data_type.rb', line 236 def initialize(base_type, modifiers, properties) @width = modifiers[0] raise "Invalid width specification" unless modifiers.size == 1 @name = Innodb::DataType.make_name(base_type, modifiers, properties) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
233 234 235 |
# File 'lib/innodb/data_type.rb', line 233 def name @name end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
234 235 236 |
# File 'lib/innodb/data_type.rb', line 234 def width @width end |