Class: Container

Inherits:
Object
  • Object
show all
Defined in:
lib/unpack/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#directoryObject

Returns the value of attribute directory.



2
3
4
# File 'lib/unpack/container.rb', line 2

def directory
  @directory
end

#filesObject

Returns the value of attribute files.



2
3
4
# File 'lib/unpack/container.rb', line 2

def files
  @files
end