Changeset 289


Ignore:
Timestamp:
Sep 23, 2009, 5:12:03 PM (11 years ago)
Author:
KOBAYASHI, Shinji
Message:

assumed types library completed

Location:
ruby/branches/0.5
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/assumed_library_types.rb

    r288 r289  
    481481    end # end of ISO8601Timezone
    482482
    483     module ISO8601_DURATION_MODULE
     483    module ISO8601DurationModule
    484484      attr_reader :years, :months, :weeks, :days
    485485      attr_reader :hours, :minutes, :seconds, :fractional_second
     
    572572    end
    573573
    574     class ISO8601_DURATION < TimeDefinitions
    575       include ISO8601_DURATION_MODULE
     574    class ISO8601Duration < TimeDefinitions
     575      include ISO8601DurationModule
    576576      def initialize(str)
    577577        /^P((\d+)Y)?((\d+)M)?((\d+)W)?((\d)D)?(T((\d+)H)?((\d+)M)?((\d+)(\.\d+)?S)?)?$/ =~ str
     
    585585        self.fractional_second = $16.to_f
    586586      end
    587     end # end of ISO8601_DURATION
     587    end # end of ISO8601Duration
    588588  end # end of Assumed_Types
    589589end # end of OpenEHR
Note: See TracChangeset for help on using the changeset viewer.