Module: Wunderbar::API
- Included in:
- Rack::Builder
- Defined in:
- lib/wunderbar/script.rb,
lib/wunderbar/environment.rb
Instance Method Summary collapse
- #_html(*args, &block) ⇒ Object
- #_js(*args, &block) ⇒ Object
- #_json(*args, &block) ⇒ Object
- #_template(name, &block) ⇒ Object
- #_text(*args, &block) ⇒ Object
- #_websocket(*args, &block) ⇒ Object
- #_xhtml(*args, &block) ⇒ Object
Instance Method Details
#_html(*args, &block) ⇒ Object
53 54 55 |
# File 'lib/wunderbar/environment.rb', line 53 def _html(*args, &block) .html(*args, &block) end |
#_js(*args, &block) ⇒ Object
42 43 44 |
# File 'lib/wunderbar/script.rb', line 42 def _js(*args, &block) .ruby2js(*args, &block) end |
#_json(*args, &block) ⇒ Object
61 62 63 |
# File 'lib/wunderbar/environment.rb', line 61 def _json(*args, &block) .json(*args, &block) end |
#_template(name, &block) ⇒ Object
74 75 76 |
# File 'lib/wunderbar/environment.rb', line 74 def _template(name, &block) .templates[name.to_s.gsub('_','-')] = block end |
#_text(*args, &block) ⇒ Object
65 66 67 |
# File 'lib/wunderbar/environment.rb', line 65 def _text(*args, &block) .text(*args, &block) end |
#_websocket(*args, &block) ⇒ Object
69 70 71 72 |
# File 'lib/wunderbar/environment.rb', line 69 def _websocket(*args, &block) args.last[:sync]=args.last.fetch(:sync,true) if Hash === args.last .websocket(*args, &block) end |
#_xhtml(*args, &block) ⇒ Object
57 58 59 |
# File 'lib/wunderbar/environment.rb', line 57 def _xhtml(*args, &block) .xhtml(*args, &block) end |