Skip to content

Instantly share code, notes, and snippets.

View ginty's full-sized avatar

Stephen McGinty ginty

View GitHub Profile
def configure
config = Configuration.new
yield config
config
end
class Configuration
attr_accessor :tail_logs
attr_accessor :max_connections
attr_accessor :port
def counter(start, inc)
lambda do
if @count
@count += inc
else
@count = start
end
end
end