summaryrefslogtreecommitdiff
path: root/sample/struct.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/struct.rb')
-rw-r--r--sample/struct.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/sample/struct.rb b/sample/struct.rb
index 7c0690b627..322764d02f 100644
--- a/sample/struct.rb
+++ b/sample/struct.rb
@@ -1,3 +1,7 @@
+#output:
+# struct test
+# 1
+
foo = Struct.new("test", "a1"::1, "a2"::2)
print(foo, "\n")
bar = foo.clone