diff options
Diffstat (limited to 'mop')
-rw-r--r-- | mop/__init__.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mop/__init__.py b/mop/__init__.py index bc8d606..7d4f747 100644 --- a/mop/__init__.py +++ b/mop/__init__.py @@ -330,4 +330,19 @@ def bootstrap(): name="execute", body=execute )) + # do the same thing with accessor methods that we installed with our + # temporary version of gen_reader + Class.add_method(Method.new( + name="get_superclass", body=gen_reader("superclass") + )) + Class.add_method(Method.new( + name="get_local_attributes", body=gen_reader("attributes") + )) + Attribute.add_method(Method.new( + name="get_default", body=gen_reader("default") + )) + Attribute.add_method(Method.new( + name="get_name", body=gen_reader("name") + )) + bootstrap() |