/trying_to_capture.rb Secret
Created
October 5, 2016 15:38
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