Skip to content

Instantly share code, notes, and snippets.

View gist:3a55767e7402fcc0f945
class DslMethods
dsl_method = 'do something'
end
class DslInject
act_as(klass) = klass.dsl_method = DSLMethods.dsl_method
end
class Something
end
View gist:637f9367404708ec341a
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 }
You can’t perform that action at this time.