Class: Sequel::SQL::SQLArray
- Inherits:
-
Expression
- Object
- Expression
- Sequel::SQL::SQLArray
- Defined in:
- lib/sequel/sql.rb
Overview
Represents an SQL array. Added so it is possible to deal with a ruby array of all two pairs as an SQL array instead of an ordered hash-like conditions specifier.
Instance Attribute Summary collapse
-
#array ⇒ Object
readonly
The array of objects this SQLArray wraps.
Instance Method Summary collapse
-
#initialize(array) ⇒ SQLArray
constructor
Create an object with the given array.
Methods inherited from Expression
Constructor Details
#initialize(array) ⇒ SQLArray
Create an object with the given array.
750 751 752 |
# File 'lib/sequel/sql.rb', line 750 def initialize(array) @array = array end |
Instance Attribute Details
#array ⇒ Object (readonly)
The array of objects this SQLArray wraps
747 748 749 |
# File 'lib/sequel/sql.rb', line 747 def array @array end |