Last active
December 31, 2015 21:09
-
-
Save meltingice/8045082 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 SomeApp | |
def some_function(a) | |
puts a | |
Views::Index.instance_eval do | |
attr_reader :a | |
set_instance_variable(:@a, a) | |
end | |
end | |
module Views | |
class Index < Mustache | |
#this shouldn't break | |
puts a | |
def some_other_function(b) | |
puts b | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment