Class: Clowne::Declarations::ExcludeAssociation
- Defined in:
- lib/clowne/declarations/exclude_association.rb
Overview
:nodoc: all
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #compile(plan) ⇒ Object
-
#initialize(name) ⇒ ExcludeAssociation
constructor
A new instance of ExcludeAssociation.
Methods inherited from Base
Constructor Details
#initialize(name) ⇒ ExcludeAssociation
Returns a new instance of ExcludeAssociation.
8 9 10 |
# File 'lib/clowne/declarations/exclude_association.rb', line 8 def initialize(name) @name = name.to_sym end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/clowne/declarations/exclude_association.rb', line 6 def name @name end |
Instance Method Details
#compile(plan) ⇒ Object
12 13 14 |
# File 'lib/clowne/declarations/exclude_association.rb', line 12 def compile(plan) plan.remove_from(:association, name) end |