lib/ffprober/stream.rb in ffprober-0.4.0 vs lib/ffprober/stream.rb in ffprober-0.4.1
- old
+ new
@@ -1,15 +1,5 @@
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
+ include Ffprober::DynamicInitializer
end
end