Class: Lita::Handlers::Latex
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::Latex
- Defined in:
- lib/lita/handlers/latex.rb
Constant Summary collapse
- LATEX_URL =
URI::HTTP.build( host: 'chart.apis.google.com', path: '/chart', fragment: '.png').freeze
Instance Method Summary collapse
Instance Method Details
#latex(response) ⇒ Object
14 15 16 17 |
# File 'lib/lita/handlers/latex.rb', line 14 def latex(response) expression = URI.escape(response.matches.first.first) response.reply image_url(expression) end |