Sha256: 6d39628edf21a7c55d9af3b5333e4552062d04aee3711d6c7b459e96ed53073e

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 Bytes

Contents

module Attachie
  class Interpolation
    attr_accessor :version

    def initialize(version)
      self.version = version
    end

    def container
      version.container
    end

    alias_method :bucket, :container

    def method_missing(name, *args, &block)
      version.object.send name
    end

    def respond_to?(name, *args)
      super(name, *args) || version.object.respond_to?(name, *args)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
attachie-2.0.0 lib/attachie/interpolation.rb
attachie-1.2.1 lib/attachie/interpolation.rb
attachie-1.2.0 lib/attachie/interpolation.rb
attachie-1.1.2 lib/attachie/interpolation.rb
attachie-1.1.1 lib/attachie/interpolation.rb
attachie-1.1.0 lib/attachie/interpolation.rb
attachie-1.0.1 lib/attachie/interpolation.rb
attachie-1.0.0 lib/attachie/interpolation.rb
attachie-0.0.1 lib/attachie/interpolation.rb