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.
32 33 34 |
# File 'lib/rom/sql/index.rb', line 32 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.
28 29 30 |
# File 'lib/rom/sql/index.rb', line 28 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.
24 25 26 |
# File 'lib/rom/sql/index.rb', line 24 def to_a attributes end |