specs passing
This commit is contained in:
parent
7c1f0e6cf6
commit
341c8a9937
@ -1,3 +0,0 @@
|
||||
module Flowplayer
|
||||
|
||||
end
|
@ -1,18 +0,0 @@
|
||||
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
|
@ -1,19 +0,0 @@
|
||||
module Flowplayer
|
||||
module Helpers
|
||||
|
||||
# flowplayer_for :hubble do |f|
|
||||
# f.option 'foo'
|
||||
# f.onLoad do
|
||||
# 'this.unmute();'
|
||||
# end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def flowplayer_for(id, &block)
|
||||
FlowPlayer::Player.new(id, &block)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user