diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-01-06 22:42:31 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-01-06 22:42:31 -0500 |
commit | 0e42ce6f34c3cfdf370f439f58c4e3de8b05ea92 (patch) | |
tree | 6fc9ffb3f627a91138a1479d6fa144687b7b45e3 /lib/sisu/v5/db_load_tuple.rb | |
parent | v5: docbook, fictionbook, some tidying (diff) |
v5: cosmetic code, case statement
Diffstat (limited to 'lib/sisu/v5/db_load_tuple.rb')
-rw-r--r-- | lib/sisu/v5/db_load_tuple.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sisu/v5/db_load_tuple.rb b/lib/sisu/v5/db_load_tuple.rb index 5c71a189..9bad5757 100644 --- a/lib/sisu/v5/db_load_tuple.rb +++ b/lib/sisu/v5/db_load_tuple.rb @@ -104,11 +104,11 @@ module SiSU_DbTuple if @opt.act[:verbose][:set]==:on if @col[:lev].inspect =~/[12356789]/ lev=case @col[:lev].inspect - when /1/; ':A' - when /2/; ':B' - when /3/; ':C' - when /5/; ' 2' - when /6/; ' 3' + when /1/ then ':A' + when /2/ then ':B' + when /3/ then ':C' + when /5/ then ' 2' + when /6/ then ' 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[:node]}\t#{@col[:ocns]}} elsif @col[:lev].inspect =~/[4]/ |