Class: Ansr::Arel::Visitors::Context
- Inherits:
-
Object
- Object
- Ansr::Arel::Visitors::Context
- Defined in:
- lib/ansr/arel/visitors/context.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
Instance Method Summary collapse
-
#initialize(attribute) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(attribute) ⇒ Context
Returns a new instance of Context.
4 5 6 |
# File 'lib/ansr/arel/visitors/context.rb', line 4 def initialize(attribute) @attribute = attribute end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
3 4 5 |
# File 'lib/ansr/arel/visitors/context.rb', line 3 def attribute @attribute end |