module Wunderbar::API
Public Instance Methods
_file(name, options={}, &block)
click to toggle source
# File lib/wunderbar/environment.rb, line 52 def _file(name, options={}, &block) options[:source] = block if block Wunderbar.files[name] = options end
_html(*args, &block)
click to toggle source
# File lib/wunderbar/environment.rb, line 27 def _html(*args, &block) Wunderbar.html(*args, &block) end
_js(*args, &block)
click to toggle source
# File lib/wunderbar/script.rb, line 45 def _js(*args, &block) Wunderbar.ruby2js(*args, &block) end
_json(*args, &block)
click to toggle source
# File lib/wunderbar/environment.rb, line 35 def _json(*args, &block) Wunderbar.json(*args, &block) end
_template(name, &block)
click to toggle source
# File lib/wunderbar/environment.rb, line 48 def _template(name, &block) Wunderbar.templates[name.to_s.gsub('_','-')] = block end
_text(*args, &block)
click to toggle source
# File lib/wunderbar/environment.rb, line 39 def _text(*args, &block) Wunderbar.text(*args, &block) end
_websocket(*args, &block)
click to toggle source
# File lib/wunderbar/environment.rb, line 43 def _websocket(*args, &block) args.last[:sync]=args.last.fetch(:sync,true) if Hash === args.last Wunderbar.websocket(*args, &block) end
_xhtml(*args, &block)
click to toggle source
# File lib/wunderbar/environment.rb, line 31 def _xhtml(*args, &block) Wunderbar.xhtml(*args, &block) end