diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-06-22 01:13:46 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-06-22 01:13:49 -0400 |
commit | f31e286f4a73c5c0f355512b0cb45c6c82088516 (patch) | |
tree | fdf22b179aef9937e7f6a3e71fc6c1e7f0ff9119 /lib/sisu/v5/dal_doc_objects.rb | |
parent | vim, ftplugin sisu.vim, c-\ hard wrap lines to line width (moved from c-j) (diff) |
v5: general code cleaningsisu_4.1.5
* propagate back to v4 after testing
Diffstat (limited to 'lib/sisu/v5/dal_doc_objects.rb')
-rw-r--r-- | lib/sisu/v5/dal_doc_objects.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v5/dal_doc_objects.rb b/lib/sisu/v5/dal_doc_objects.rb index de9d568f..64ddbfb1 100644 --- a/lib/sisu/v5/dal_doc_objects.rb +++ b/lib/sisu/v5/dal_doc_objects.rb @@ -62,7 +62,7 @@ module SiSU_DAL_DocumentStructure class Extract def extract(h,o) - obj=h ? h : o + h ? h : o end end class ObjectMetadata @@ -106,7 +106,7 @@ module SiSU_DAL_DocumentStructure @tags=[] end def heading_ln(lv) - ln=case lv + case lv when /A/; 1 when /B/; 2 when /C/; 3 @@ -119,7 +119,7 @@ module SiSU_DAL_DocumentStructure end end def heading_lv(ln) - lv=case ln.to_s + case ln.to_s when /1/; 'A' when /2/; 'B' when /3/; 'C' |