Class: Container
- Inherits:
-
Object
- Object
- Container
- Defined in:
- lib/unpack/container.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#files ⇒ Object
Returns the value of attribute files.
Instance Method Summary collapse
-
#initialize(args) ⇒ Container
constructor
A new instance of Container.
Constructor Details
#initialize(args) ⇒ Container
Returns a new instance of Container.
4 5 6 |
# File 'lib/unpack/container.rb', line 4 def initialize(args) args.keys.each { |name| instance_variable_set "@" + name.to_s, args[name] } end |
Instance Attribute Details
#directory ⇒ Object
Returns the value of attribute directory.
2 3 4 |
# File 'lib/unpack/container.rb', line 2 def directory @directory end |
#files ⇒ Object
Returns the value of attribute files.
2 3 4 |
# File 'lib/unpack/container.rb', line 2 def files @files end |