Class: Vendorificator::Overlay

Inherits:
Object
  • Object
show all
Defined in:
lib/vendorificator/overlay.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Overlay

Returns a new instance of Overlay.



5
6
7
8
9
# File 'lib/vendorificator/overlay.rb', line 5

def initialize(options = {})
  @name = strip_leading_slash(options[:name])
  @path = options[:path] ? strip_leading_slash(options[:path]) : @name
  @segments = []
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/vendorificator/overlay.rb', line 3

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/vendorificator/overlay.rb', line 3

def path
  @path
end

#segmentsObject (readonly)

Returns the value of attribute segments.



3
4
5
# File 'lib/vendorificator/overlay.rb', line 3

def segments
  @segments
end