Skip to content

Commit

Permalink
Fix RakeHelper for 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 24, 2013
1 parent e895410 commit 2946e9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/opal/rake_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ def install_tasks

def expose(*names)
names.each do |name|
define_singleton_method(name) do |*args|
meta_class.send(:define_method, name) do |*args|
instance.__send__(name, *args)
end
end
end

def meta_class
class << self; self; end
end
end

expose :uglify, :gzip
Expand Down

0 comments on commit 2946e9b

Please sign in to comment.