diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-12-08 01:45:13 +0000 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-12-08 01:45:13 +0000 |
commit | 084d10a94dd5a62b09de69ad95971f579097f07e (patch) | |
tree | 11760cb2633997d93f14110e353aef1d64da02fd /lib/sisu/v0/db_load_tuple.rb | |
parent | gpl links updated and added link to plaintext as allows for convenient use of... (diff) |
changelog and version updated
Diffstat (limited to 'lib/sisu/v0/db_load_tuple.rb')
-rw-r--r-- | lib/sisu/v0/db_load_tuple.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v0/db_load_tuple.rb b/lib/sisu/v0/db_load_tuple.rb index e324fd1b..d85346cc 100644 --- a/lib/sisu/v0/db_load_tuple.rb +++ b/lib/sisu/v0/db_load_tuple.rb @@ -89,8 +89,8 @@ module SiSU_DB_tuple }) end if @opt.cmd =~/v/ - if @col[:lev].to_s =~/[1235678]/ - lev=case @col[:lev].to_s + if @col[:lev].inspect =~/[1235678]/ + lev=case @col[:lev].inspect when /1/; ':A' when /2/; ':B' when /3/; ':C' @@ -98,7 +98,7 @@ module SiSU_DB_tuple when /6/; ' 3' end puts %{#{lev}>\t#{@col[:lv1]}\t#{@col[:lv2]}\t#{@col[:lv3]}\t#{@col[:lv4]}\t#{@col[:lv5]}\t#{@col[:lv6]}\t#{@col[:ocn]}\t#{@col[:ocnd]}\t#{@col[:ocns]}} - elsif @col[:lev].to_s =~/[4]/ + elsif @col[:lev].inspect =~/[4]/ puts %{ #{@cX.green}1>#{@cX.off}\t#{@col[:lv1]}\t#{@col[:lv2]}\t#{@col[:lv3]}\t#{@col[:lv4]}\t#{@col[:lv5]}\t#{@col[:lv6]}\t#{@col[:ocn]}\t#{@col[:ocnd]}\t#{@col[:ocns]}\t#{@col[:seg]}} end end |