Class: Mona::Task
Defined Under Namespace
Classes: Manager
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#on ⇒ Object
readonly
Returns the value of attribute on.
Instance Method Summary collapse
-
#initialize(name:, on:, block:) ⇒ Task
constructor
A new instance of Task.
Methods included from Mixins
Constructor Details
#initialize(name:, on:, block:) ⇒ Task
Returns a new instance of Task.
14 15 16 17 18 19 20 |
# File 'lib/mona/task.rb', line 14 def initialize(name:, on:, block:) @name = name.to_sym @on = on @block = block nil end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/mona/task.rb', line 4 def block @block end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/mona/task.rb', line 4 def name @name end |
#on ⇒ Object (readonly)
Returns the value of attribute on.
4 5 6 |
# File 'lib/mona/task.rb', line 4 def on @on end |