summaryrefslogtreecommitdiff
path: root/sample/export.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/export.rb')
-rw-r--r--sample/export.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/sample/export.rb b/sample/export.rb
new file mode 100644
index 0000000000..3a6a8198df
--- /dev/null
+++ b/sample/export.rb
@@ -0,0 +1,13 @@
+class foo
+ export(\printf)
+end
+
+def foobar
+ print "foobar\n"
+end
+
+f = foo.new
+#foo.unexport(\printf)
+foo.export(\foobar)
+f.foobar
+f.printf "%s\n", foo