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
new file mode 100644
index 0000000..7c0690b
--- /dev/null
+++ b/sample/struct.rb
@@ -0,0 +1,4 @@
+foo = Struct.new("test", "a1"::1, "a2"::2)
+print(foo, "\n")
+bar = foo.clone
+print(bar.a1, "\n")