Ignore:
Timestamp:
Nov 10, 2009, 9:46:35 PM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

data_structure will nearly completed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/data_structures/item_structure.rb

    r216 r339  
    5454              return item if item.name.value == a_name
    5555            end
    56             retrun nil
     56            return nil
    5757          end
    5858
     
    111111          def ith_row(i)
    112112            raise ArgumentError, 'invalid index' if i<=0 or i>@rows.size
    113             if @rows.nil?
    114               return []
    115             else
    116               return @rows[i - 1]
    117             end
     113            return @rows[i - 1]
    118114          end
    119115
     
    139135              return row if row.items[0].name.value == key
    140136            end
    141             return []
    142137          end
    143138
Note: See TracChangeset for help on using the changeset viewer.