Class: Decorators::Paths

Inherits:
Object
  • Object
show all
Defined in:
lib/decorators/paths.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#registeredObject (readonly)

Returns the value of attribute registered.



6
7
8
# File 'lib/decorators/paths.rb', line 6

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