Class: Decorators::Paths
- Inherits:
-
Object
- Object
- Decorators::Paths
- Defined in:
- lib/decorators/paths.rb
Instance Attribute Summary collapse
-
#registered ⇒ Object
readonly
Returns the value of attribute registered.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Paths
constructor
A new instance of Paths.
- #register!(path) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Paths
Returns a new instance of Paths.
7 8 9 |
# File 'lib/decorators/paths.rb', line 7 def initialize(*args) @registered = Array.new(*args) end |
Instance Attribute Details
#registered ⇒ Object (readonly)
Returns the value of attribute registered.
5 6 7 |
# File 'lib/decorators/paths.rb', line 5 def registered @registered end |
Instance Method Details
#register!(path) ⇒ Object
11 12 13 |
# File 'lib/decorators/paths.rb', line 11 def register!(path) @registered << Pathname.new(path) end |