Class: ROM::SQL::Index Private
- Inherits:
-
Object
- Object
- ROM::SQL::Index
- Extended by:
- Initializer
- Defined in:
- lib/rom/sql/index.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #can_access?(attribute) ⇒ Boolean private
- #partial? ⇒ Boolean private
- #to_a ⇒ Object private
Instance Method Details
#can_access?(attribute) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
30 31 32 |
# File 'lib/rom/sql/index.rb', line 30 def can_access?(attribute) !partial? && attributes[0].name == attribute.name end |
#partial? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/rom/sql/index.rb', line 26 def partial? !predicate.nil? end |
#to_a ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/rom/sql/index.rb', line 22 def to_a attributes end |