flowplayer-gem/lib/player.rb
Scott Davis 5385986f88 inital
2011-01-31 16:06:59 -05:00

18 lines
328 B
Ruby

module Flowplayer
class PLayer
attr_accessor :options
def initialize(dom_id, &block)
@options = []
block.call
end
def method_missing(method, *args, &block)
if block.nil?
options[method] = args.first
else
options[method] = block.call
end
end
end
end