lib/zena/use/node_context.rb in zena-1.0.0.rc3 vs lib/zena/use/node_context.rb in zena-1.0.0
- old
+ new
@@ -28,11 +28,11 @@
real_single_class <= type
else
super
end
end
-
+
# Get an uppers NodeContext that is of the given class kind.
def get(klass)
if real_single_class <= klass
return self unless list_context?
@@ -47,10 +47,10 @@
@up.get(klass)
else
nil
end
end
-
+
# Return the 'real' class name or the superclass name if the current class is an anonymous class.
def class_name
if list_context?
"[#{real_single_class}]"
else
\ No newline at end of file