Class: Jarl::JarlFile
- Inherits:
-
Object
- Object
- Jarl::JarlFile
- Defined in:
- lib/jarl/jarl_file.rb
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
- #applications ⇒ Object
-
#initialize(path) ⇒ JarlFile
constructor
A new instance of JarlFile.
Constructor Details
#initialize(path) ⇒ JarlFile
Returns a new instance of JarlFile.
8 9 10 11 |
# File 'lib/jarl/jarl_file.rb', line 8 def initialize(path) @path = Pathname.new(path). @name = @path.basename('.jarl') end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/jarl/jarl_file.rb', line 6 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/jarl/jarl_file.rb', line 6 def path @path end |
Instance Method Details
#applications ⇒ Object
13 14 15 |
# File 'lib/jarl/jarl_file.rb', line 13 def applications @applications ||= load_applications end |