Ignore:
Timestamp:
Aug 28, 2009, 1:45:46 AM (12 years ago)
Author:
KOBAYASHI, Shinji
Message:

dv_parsable modified

File:
1 edited

Legend:

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

    r237 r238  
    8080
    8181        class DvParsable < DvEncapsulated
    82           attr_reader :value, :formalism
     82          attr_reader :formalism
    8383
    8484          def initialize(args = {})
     
    8888
    8989          def formalism=(formalism)
    90             if formalism.nil?
    91               raise ArgumentError, "formalism must not be nil"
    92             elsif formalism.empty?
    93               raise ArgumentError, "formalism must nto be empty"
     90            if formalism.nil? || formalism.empty?
     91              raise ArgumentError, 'formalism is mandatory'
    9492            end
    9593            @formalism = formalism
Note: See TracChangeset for help on using the changeset viewer.