Sha256: cf7715166491eb3e751f66c419dc4313a47965f0f509e17dc2939a95799fb45e

Contents?: true

Size: 350 Bytes

Versions: 6

Compression:

Stored size: 350 Bytes

Contents

require "wref" if !Kernel.const_defined?(:Wref)

#A framework for controlling various elements of PulseAudio in Ruby.
class PulseAudio
  #Autoloader for subclasses.
  def self.const_missing(name)
    require "#{File.realpath("#{File.dirname(__FILE__)}/../include")}/pulseaudio_#{name.to_s.downcase}.rb"
    return PulseAudio.const_get(name)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pulseaudio-0.0.10 lib/pulseaudio.rb
pulseaudio-0.0.9 lib/pulseaudio.rb
pulseaudio-0.0.8 lib/pulseaudio.rb
pulseaudio-0.0.7 lib/pulseaudio.rb
pulseaudio-0.0.6 lib/pulseaudio.rb
pulseaudio-0.0.5 lib/pulseaudio.rb