Skip to content

Instantly share code, notes, and snippets.

A = ->(s){ s << "a" }
B = ->(s){ s << "b" }
C = ->(s){ s << "c" }
str = ""
class Object
PIPED = ->(*args, arg){ arg.is_a?(Proc) ? arg[PIPED[*args]] : arg }
class DslMethods
dsl_method = 'do something'
end
class DslInject
act_as(klass) = klass.dsl_method = DSLMethods.dsl_method
end
class Something
end
p "I love grounds"