Class: Vendorificator::Overlay
- Inherits:
-
Object
- Object
- Vendorificator::Overlay
- Defined in:
- lib/vendorificator/overlay.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#segments ⇒ Object
readonly
Returns the value of attribute segments.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Overlay
constructor
A new instance of Overlay.
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( = {}) @name = strip_leading_slash([:name]) @path = [:path] ? strip_leading_slash([:path]) : @name @segments = [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/vendorificator/overlay.rb', line 3 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/vendorificator/overlay.rb', line 3 def path @path end |
#segments ⇒ Object (readonly)
Returns the value of attribute segments.
3 4 5 |
# File 'lib/vendorificator/overlay.rb', line 3 def segments @segments end |