Class: Reciprocal
Constant Summary collapse
- REP =
'%'
Instance Method Summary collapse
Methods inherited from Op
#apply_monad_deep, #integer_args, #numeric_literal?, #to_numeric
Instance Method Details
#run(ary, interpreter) ⇒ Object
166 167 168 |
# File 'lib/jop.rb', line 166 def run ary, interpreter apply_monad_deep(ary) {|e| 1 / e.to_f } end |