-
-
Save paulcsmith/ca45307e1715af68b23c1c14a8feaa27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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