Class: Clowne::Declarations::Nullify
- Defined in:
- lib/clowne/declarations/nullify.rb
Overview
:nodoc: all
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
- #compile(plan) ⇒ Object
-
#initialize(*attributes) ⇒ Nullify
constructor
A new instance of Nullify.
Methods inherited from Base
Constructor Details
#initialize(*attributes) ⇒ Nullify
Returns a new instance of Nullify.
8 9 10 11 12 |
# File 'lib/clowne/declarations/nullify.rb', line 8 def initialize(*attributes) raise ArgumentError, 'At least one attribute required' if attributes.empty? @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/clowne/declarations/nullify.rb', line 6 def attributes @attributes end |
Instance Method Details
#compile(plan) ⇒ Object
14 15 16 |
# File 'lib/clowne/declarations/nullify.rb', line 14 def compile(plan) plan.add(:nullify, self) end |