Skip to content

Instantly share code, notes, and snippets.

View andriy-baran's full-sized avatar
🎯
Focusing

andriy-baran

🎯
Focusing
View GitHub Profile
body\code 200 201 403 404 422
raw text/plain | string text/plain | string text/plain | string text/plain | string text/plain | string
object x-json | ostruct x-json | ostruct x-json | ostruct x-json | ostruct x-json | ostruct
collection x-json | hash x-json | hash x-json | hash x-json | hash x-json | hash
module Configurable
def config(*attrs)
@configuration ||= Struct.new(*attrs).new
end
def configure
yield(@configuration) if block_given?
end
end