Class: Datasource::Attributes::QueryAttribute
- Inherits:
-
Object
- Object
- Datasource::Attributes::QueryAttribute
- Defined in:
- lib/datasource/attributes/query_attribute.rb
Class Attribute Summary collapse
-
._depends ⇒ Object
Returns the value of attribute _depends.
Class Method Summary collapse
Class Attribute Details
._depends ⇒ Object
Returns the value of attribute _depends.
5 6 7 |
# File 'lib/datasource/attributes/query_attribute.rb', line 5 def _depends @_depends end |
Class Method Details
.depends(*args) ⇒ Object
11 12 13 |
# File 'lib/datasource/attributes/query_attribute.rb', line 11 def depends(*args) self._depends += args.map(&:to_s) end |
.inherited(base) ⇒ Object
7 8 9 |
# File 'lib/datasource/attributes/query_attribute.rb', line 7 def inherited(base) base._depends = (_depends || []).dup end |