projects
/
chise
/
ruby.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
i
[chise/ruby.git]
/
tools
/
sample1.rb
diff --git
a/tools/sample1.rb
b/tools/sample1.rb
index
0017112
..
9b32d00
100755
(executable)
--- a/
tools/sample1.rb
+++ b/
tools/sample1.rb
@@
-1,7
+1,7
@@
#!/usr/bin/env ruby
-$LOAD_PATH << '../lib'
-require 'chise'
-include CHISE
+
+$LOAD_PATH.unshift("..")
+require "chise/char"
str = "字" #Stringを拡張している。UTF8で与えること。
p str.ucs #とすると、その文字のucsの値が表示される