Changeset 203 for ruby/branches/0.5


Ignore:
Timestamp:
Aug 15, 2009, 8:04:53 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #54

File:
1 edited

Legend:

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

    r200 r203  
    6666          end
    6767        end
     68
    6869        class ItemTable < ItemStructure
    6970          attr_accessor :rows
    7071
    71           def intialize(args = {})
     72          def initialize(args = {})
    7273            super(args)
    7374            self.rows = args[:rows]
     75          end
     76
     77          def row_count
     78            if @rows.nil?
     79              return 0
     80            else
     81              return @rows.size
     82            end
    7483          end
    7584        end
Note: See TracChangeset for help on using the changeset viewer.