Skip to content

Instantly share code, notes, and snippets.

@paulcsmith
Created October 5, 2016 15:38
class Controller
def index
before_action = &print_it_out
before_action.call(self)
end
def print_it_out(controller : Controller)
p controller.inspect
end
end
puts Controller.new.index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment