Class: MediaInfoNative::MediaInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/mediainfo-native/mediainfo.rb,
ext/mediainfo_native/mediainfo_wrapper.cpp

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/mediainfo-native/mediainfo.rb', line 18

def method_missing(meth, *args, &block)
  if self.general.respond_to?(meth)
    self.general.send(meth, *args, &block)
  else
    super
  end
end

Instance Method Details

#respond_to?(meth, include_all = false) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/mediainfo-native/mediainfo.rb', line 14

def respond_to?(meth, include_all = false)
  (is_open? && self.general.respond_to?(meth, include_all)) || super
end