Class: Cinch::Plugins::SimpleCalc
- Inherits:
-
Object
- Object
- Cinch::Plugins::SimpleCalc
- Includes:
- Cinch::Plugin
- Defined in:
- lib/cinch/plugins/simplecalc.rb
Overview
Simple Plugin to do quick math
Instance Method Summary collapse
Instance Method Details
#execute(m, problem) ⇒ Object
18 19 20 |
# File 'lib/cinch/plugins/simplecalc.rb', line 18 def execute(m, problem) m.reply calc(problem), true end |