Skip to content

Instantly share code, notes, and snippets.

@jschementi
Created August 1, 2009 01:00
Foo = 1
class Bar(object):
def baz(self):
print Foo
a = IronRuby.require('a') # a is an instance of Scope
a.foo += 1 # get and set Python module variable
b = a.bar.new # instantiate Python class
b.baz # call its instance method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment