Module: Quiver::Duty
- Defined in:
- lib/quiver/duty.rb
Defined Under Namespace
Modules: PrependMethods
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
3 4 5 |
# File 'lib/quiver/duty.rb', line 3 def arguments @arguments end |
Class Method Details
.included(host) ⇒ Object
5 6 7 |
# File 'lib/quiver/duty.rb', line 5 def self.included(host) host.send(:prepend, PrependMethods) end |
Instance Method Details
#initialize(*args) ⇒ Object
9 10 11 |
# File 'lib/quiver/duty.rb', line 9 def initialize(*args) self.arguments = args end |
#perform(*args) ⇒ Object
13 14 15 |
# File 'lib/quiver/duty.rb', line 13 def perform(*args) raise NotImplementedError, 'Duties must implement #perform' end |