Created
May 30, 2011 20:51
-
-
Save powdahound/999441 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
Module Foo | |
Module Bar | |
def Bar.get_blah | |
# in my case, get_blah actually does a bunch of databag fetching and generates a nice Hash, but access to the node object is what matters here | |
return node[:blah] | |
end | |
end | |
end |
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
# Current | |
b = node[:blah] | |
# What I want (so I don't have to copy my code into multiple recipes) | |
b = Foo::Bar.get_blah() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment