We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e993885 commit 1f8b8deCopy full SHA for 1f8b8de
1 file changed
extensions/basic/basic.rb
@@ -4,14 +4,31 @@
4
require "com/purbon/basic"
5
6
7
+##
8
+# Using a class created in the jruby side, this class has for example a method with aliases, etc.
9
10
bar = Bar.new
11
12
13
+# Calling a method form the class that has two names, throw aliases. This method return a simple
14
+# string from the java side.
15
16
puts bar.say
17
puts bar.shout
18
19
20
+# Using a module defined in the extensione.
21
+# Foo is a module defined in jruby extension point.
22
23
class MyRubyClass
24
include Foo
25
end
26
27
28
+# Using a method defined in the module, but form the created class.
29
30
puts MyRubyClass.new.build_string
31
32
+# Using the same method but as static method defined in the module.
33
34
puts Foo.build_string
0 commit comments