Class: Automux::Core::Recipe
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Recipe
constructor
A new instance of Recipe.
Methods included from Support::CustomAccessors
Constructor Details
#initialize(path) ⇒ Recipe
Returns a new instance of Recipe.
6 7 8 9 |
# File 'lib/automux/core/recipe.rb', line 6 def initialize(path) @name = File.basename(path, '.sh.erb') @path = path end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/automux/core/recipe.rb', line 4 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/automux/core/recipe.rb', line 4 def path @path end |