$ suco apt-get update
$ sudo apt-get install python-software-properties
$ sudo apt-add-repository ppa:brightbox/ruby-ng
$ sudo apt-get update
$ sudo apt-get install ruby2.1 ruby-switch ruby2.1-dev
$ sudo ruby-switch --set ruby2.1
$ sudo gem install travis -v 1.8.9 --no-rdoc --no-ri
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
def outside_function(obj): | |
obj.foo = 'baz' | |
class Test(object): | |
def __init__(self): | |
self.foo = 'bar' | |
def do_something(self): | |
outside_function(self) |
NewerOlder