rua 0.1.2-mswin32 → 0.1.3-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +9 -8
- data/lib/i386-mswin32/rua.so +0 -0
- metadata +1 -1
data/README.txt
CHANGED
@@ -19,22 +19,23 @@ Rua is a library for using Lua under Ruby.
|
|
19
19
|
#rua.openlibs(:base, :package, :string)
|
20
20
|
#rua.secure = false
|
21
21
|
|
22
|
-
rua
|
23
|
-
rua
|
24
|
-
rua
|
22
|
+
rua.str = 'xxx'
|
23
|
+
rua.num = 100
|
24
|
+
rua.proc = lambda do
|
25
25
|
puts 'proc called.'
|
26
26
|
end
|
27
|
-
rua
|
27
|
+
rua.err = lambda do
|
28
28
|
raise 'err called.'
|
29
29
|
end
|
30
|
-
|
30
|
+
rua.Time = Time
|
31
31
|
puts rua.eval(<<-EOS)
|
32
32
|
print('hello Rua!')
|
33
33
|
print(str)
|
34
34
|
print(num)
|
35
35
|
proc()
|
36
36
|
err()
|
37
|
-
|
37
|
+
print(Time.new().to_s())
|
38
|
+
|
38
39
|
f = function()
|
39
40
|
print('f() called.')
|
40
41
|
end
|
@@ -42,5 +43,5 @@ Rua is a library for using Lua under Ruby.
|
|
42
43
|
return true
|
43
44
|
EOS
|
44
45
|
|
45
|
-
|
46
|
-
|
46
|
+
rua.f.call
|
47
|
+
p rua.eval('return 1, 2, 3')
|
data/lib/i386-mswin32/rua.so
CHANGED
Binary file
|