Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

simplify nested_classes example

  • Loading branch information...
commit 274a46d8f1780df105eb4792bd56397b6b780d00 1 parent 0893741
@bakkdoor authored
Showing with 3 additions and 15 deletions.
  1. +3 −15 examples/nested_classes.fy
View
18 examples/nested_classes.fy
@@ -3,25 +3,13 @@
class Outer {
class Inner {
- def to_s {
- "Outerr::Inner"
- }
- }
-
- def to_s {
- "Outer"
}
}
-
-o = Outer new
-o println
-i = Outer::Inner new
-i println
+Outer name println
+Outer Inner name println
class Outer InnerTwo {
- def to_s { "Outer InnerTwo" }
}
-i = Outer InnerTwo new
-i println
+Outer InnerTwo name println
Please sign in to comment.
Something went wrong with that request. Please try again.