Class: Jarl::JarlFile

Inherits:
Object
  • Object
show all
Defined in:
lib/jarl/jarl_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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).expand_path
  @name = @path.basename('.jarl')
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/jarl/jarl_file.rb', line 6

def name
  @name
end

#pathObject (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

#applicationsObject



13
14
15
# File 'lib/jarl/jarl_file.rb', line 13

def applications
  @applications ||= load_applications
end