-
-
Save anonymous/6f1711d4aaf93d67362a 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
def get_row( *columns ) | |
if( !block_given? ) | |
raise MyError | |
end | |
puts "Block should exist" | |
# later on I call yield | |
... | |
end | |
##### | |
get_row( :col_a, :col_b ) do |hash| | |
puts hash | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment