Class: Adrift::Pattern::Tags::Root
- Inherits:
-
Object
- Object
- Adrift::Pattern::Tags::Root
- Defined in:
- lib/adrift/pattern.rb
Overview
Pattern’s tag that represents the application root directory.
Class Attribute Summary collapse
-
.path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#label ⇒ Object
Portion of Pattern#string that will be replaced.
-
#specialize ⇒ Object
Returns Adrift::Pattern::Tags::Root.path when defined, ‘.’ otherwise.
Class Attribute Details
.path ⇒ Object
Returns the value of attribute path.
122 123 124 |
# File 'lib/adrift/pattern.rb', line 122 def path @path end |
Instance Method Details
#label ⇒ Object
Portion of Pattern#string that will be replaced.
126 127 128 |
# File 'lib/adrift/pattern.rb', line 126 def label ':root' end |
#specialize ⇒ Object
Returns Adrift::Pattern::Tags::Root.path when defined, ‘.’ otherwise.
132 133 134 |
# File 'lib/adrift/pattern.rb', line 132 def specialize(*) self.class.path || '.' end |