Something went wrong. Try again.
A fork of helix with a bespoke collection patches.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243module Greeter class Hello def initialize(name) @name = name end
def greet if @name puts "Hello, #{@name}" elsif @other puts "Hi" else puts "Hello" end end
def classify(x) case x when 1 "one" else "many" end end
def safe begin risky rescue => e handle(e) ensure cleanup end end
def each_item [1, 2, 3].each do |item| process(item) end end endend