Class: AudioFeedManager::Application
- Inherits:
-
Object
- Object
- AudioFeedManager::Application
- Includes:
- Dependor::AutoInject
- Defined in:
- lib/audio_feed_manager/application.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdin ⇒ Object
readonly
Returns the value of attribute stdin.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(directory:, stdin:, stderr:, stdout:) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(directory:, stdin:, stderr:, stdout:) ⇒ Application
Returns a new instance of Application.
8 9 10 11 12 13 |
# File 'lib/audio_feed_manager/application.rb', line 8 def initialize(directory:, stdin:, stderr:, stdout:) @directory = Pathname.new(File.(directory)) @stdin = stdin @stderr = stderr @stdout = stdout end |
Instance Attribute Details
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
6 7 8 |
# File 'lib/audio_feed_manager/application.rb', line 6 def directory @directory end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
6 7 8 |
# File 'lib/audio_feed_manager/application.rb', line 6 def stderr @stderr end |
#stdin ⇒ Object (readonly)
Returns the value of attribute stdin.
6 7 8 |
# File 'lib/audio_feed_manager/application.rb', line 6 def stdin @stdin end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
6 7 8 |
# File 'lib/audio_feed_manager/application.rb', line 6 def stdout @stdout end |
Class Method Details
.let(name, &block) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/audio_feed_manager/application.rb', line 15 def self.let(name, &block) define_method(name) do @object_cache ||= {} @object_cache[name] ||= instance_exec(&block) end end |