Skip to content

Instantly share code, notes, and snippets.

@DefV
Created July 15, 2014 13:30
Show Gist options
  • Save DefV/d37df0aafe626cf08e44 to your computer and use it in GitHub Desktop.
Save DefV/d37df0aafe626cf08e44 to your computer and use it in GitHub Desktop.
12:42 :: guinsly:: I'm trying to retrieve a content from another class. But it outputs nil :: https://gist.github.com/guinslym/06bb6bc108c9331e1ff0
12:42 :: jhass:: guinsly: is that your real code? or an example that reproduces? because class foo is invalid
12:43 :: shevy:: arup_r, http://stackoverflow.com/questions/543774/undef-why-would-you-want-to-undefine-a-method-in-ruby - but it seems as if people rarely need it
12:43 :: jhass:: also note that the @firstname outside a def is a different @firstname
12:43 :: jhass:: guinsly: ^
12:43 :: shevy:: I never needed undef, I did need undef_method (or actually... remove_method it was...)
12:43 :: guinsly:: jhass, this the realcode except class foo is name LoadFile
12:43 :: jhass:: why did you change it?
12:44 :: jhass:: but your issue is probably what I just said
12:44 :: apeiros:: weird indent. tabs mixed with spaces? o0
12:44 :: guinsly:: jhass, ok thks!
12:45 :: jhass:: apeiros: probably editor se
13:10 :: xmj:: moin
13:10 :: xmj:: How do I make gem install a specific version (actionview 4.1.1, that is) ?
13:11 :: shevy:: xmj: gem install facets --version=1.8.54
13:11 :: shevy:: xmj: gem install actionview --version=4.1.1
13:11 :: shevy:: I think
13:14 :: xmj:: thx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment