Changeset 174 for ruby/branches/0.5/lib


Ignore:
Timestamp:
Aug 10, 2009, 12:07:11 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

common package is now on rails

Location:
ruby/branches/0.5/lib/open_ehr/rm/data_types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/data_types/encapsulated.rb

    r167 r174  
    4646          def charset_valid?(charset)
    4747            result = false
    48             open('rm/data_types/charset.lst') do |file|
     48            open('lib/open_ehr/rm/data_types/charset.lst') do |file|
    4949              while line = file.gets
    5050                if charset == line.chomp
  • ruby/branches/0.5/lib/open_ehr/rm/data_types/quantity/date_time.rb

    r167 r174  
    156156
    157157            def magnitude
    158               seconds = DateTime.new(@year,@month,@day,@hour,@minute,@second) -
    159                 DateTime.new(0000,1,1,0,0,0)
     158              seconds = ::DateTime.new(@year,@month,@day,@hour,@minute,@second) -
     159                ::DateTime.new(0000,1,1,0,0,0)
    160160              if @fractional_second.nil?
    161161                return seconds
Note: See TracChangeset for help on using the changeset viewer.