Class: Mamiya::Steps::Abstract
- Inherits:
-
Object
- Object
- Mamiya::Steps::Abstract
- Defined in:
- lib/mamiya/steps/abstract.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#script ⇒ Object
readonly
Returns the value of attribute script.
Instance Method Summary collapse
-
#initialize(script: Mamiya::Script.new, config: Mamiya::Configuration.new, logger: Mamiya::Logger.new, **options) ⇒ Abstract
constructor
A new instance of Abstract.
- #run! ⇒ Object
Constructor Details
#initialize(script: Mamiya::Script.new, config: Mamiya::Configuration.new, logger: Mamiya::Logger.new, **options) ⇒ Abstract
8 9 10 11 |
# File 'lib/mamiya/steps/abstract.rb', line 8 def initialize(script: Mamiya::Script.new, config: Mamiya::Configuration.new, logger: Mamiya::Logger.new, **) @script, @config, = script, config, @logger = logger[self.class.name.sub(/^Mamiya::Steps::/,'')] end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
13 14 15 |
# File 'lib/mamiya/steps/abstract.rb', line 13 def config @config end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
13 14 15 |
# File 'lib/mamiya/steps/abstract.rb', line 13 def logger @logger end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/mamiya/steps/abstract.rb', line 13 def end |
#script ⇒ Object (readonly)
Returns the value of attribute script.
13 14 15 |
# File 'lib/mamiya/steps/abstract.rb', line 13 def script @script end |
Instance Method Details
#run! ⇒ Object
15 16 |
# File 'lib/mamiya/steps/abstract.rb', line 15 def run! end |