Class: Clowne::Declarations::ExcludeAssociation

Inherits:
Base
  • Object
show all
Defined in:
lib/clowne/declarations/exclude_association.rb

Overview

:nodoc: all

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#matches?

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

#nameObject

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