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
#!/usr/bin/env ruby | |
class TestClass | |
def initialize(str) | |
@class_str = str | |
end | |
# This is the method we want to call | |
def foo(str, &block) | |
# We're going to pass the STDOUT object into the block. This was ansible before. |