Skip to content

Instantly share code, notes, and snippets.

@paulcsmith
Created October 5, 2016 15:38
Show Gist options
  • Save paulcsmith/ca45307e1715af68b23c1c14a8feaa27 to your computer and use it in GitHub Desktop.
Save paulcsmith/ca45307e1715af68b23c1c14a8feaa27 to your computer and use it in GitHub Desktop.
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