Skip to content

Instantly share code, notes, and snippets.

@pocke pocke/sum1.rb
Last active Apr 30, 2019

What would you like to do?
For akaza blog
require 'akaza'
class A
extend Akaza::Annotation
whitespace def sum(input, output)
This code is never evaluated.
So you can write any
sentences as comments!
a =
input ="20\n22\n")
output =
a.sum(input, output)
p output.string # => "42"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.