Sha256: a63c9090534449fbda90cdfbe5495e0e135a984f9054df8cd52bf573e71e65fb

Contents?: true

Size: 298 Bytes

Versions: 7

Compression:

Stored size: 298 Bytes

Contents

class Container
  attr_accessor :files, :directory
  
  def initialize(args)
    args.keys.each { |name| instance_variable_set "@" + name.to_s, args[name] }
  end
  
  def files
    return @files if @called
    @files.map! {|file| "#{@directory}/#{file}"}
    @called = true
    @files
  end
end
  

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
unpack-0.2.1 lib/unpack/container.rb
unpack-0.2.0 lib/unpack/container.rb
unpack-0.1.9 lib/unpack/container.rb
unpack-0.1.8 lib/unpack/container.rb
unpack-0.1.7 lib/unpack/container.rb
unpack-0.1.6 lib/unpack/container.rb
unpack-0.1.4 lib/unpack/container.rb