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.
Files changed (3) hide show
  1. data/README.txt +9 -8
  2. data/lib/i386-mswin32/rua.so +0 -0
  3. 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[:str] = 'xxx'
23
- rua[:num] = 100
24
- rua[:proc] = lambda do
22
+ rua.str = 'xxx'
23
+ rua.num = 100
24
+ rua.proc = lambda do
25
25
  puts 'proc called.'
26
26
  end
27
- rua[:err] = lambda do
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
- f = rua[:f]
46
- f.call
46
+ rua.f.call
47
+ p rua.eval('return 1, 2, 3')
Binary file
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: rua
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.2
6
+ version: 0.1.3
7
7
  date: 2007-11-14 00:00:00 +09:00
8
8
  summary: rua is a library for using Lua under Ruby.
9
9
  require_paths: