summaryrefslogtreecommitdiff
path: root/sample/attr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/attr.rb')
-rw-r--r--sample/attr.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/sample/attr.rb b/sample/attr.rb
new file mode 100644
index 0000000..2db79f1
--- /dev/null
+++ b/sample/attr.rb
@@ -0,0 +1,9 @@
+class Foo
+ attr("test", %TRUE)
+end
+
+foo = Foo.new
+foo.test = 10
+print(foo.test, "\n")
+foo._inspect.print
+print("\n")