Sha256: 88dc448cb66b8ed383e996a73ce1590ae2090fee2879e885d6d11aaf2697706e

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

module Ffprober
  class Stream
    def initialize(object_attribute_hash)
      object_attribute_hash.each do |key, value|
        instance_variable_set("@#{key}", value)

        unless self.class.method_defined?(key)
          self.class.send(:define_method, key) do
            instance_variable_get("@#{key}")
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffprober-0.4.0 lib/ffprober/stream.rb