Skip to content

Instantly share code, notes, and snippets.

@meltingice
Last active December 31, 2015 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meltingice/8045082 to your computer and use it in GitHub Desktop.
Save meltingice/8045082 to your computer and use it in GitHub Desktop.
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