Class: Arel::Enhance::QueryMethods::QueryMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/arel/enhance/query_methods.rb

Direct Known Subclasses

Ancestors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subject) ⇒ QueryMethod

Returns a new instance of QueryMethod.



7
8
9
# File 'lib/arel/enhance/query_methods.rb', line 7

def initialize(subject)
  @subject = subject
end

Instance Attribute Details

#subjectObject (readonly)

Returns the value of attribute subject.



5
6
7
# File 'lib/arel/enhance/query_methods.rb', line 5

def subject
  @subject
end