Included Modules

Files

Class Index [+]

Quicksearch

XSD::XSDGMonthDay

Constants

Type

Public Class Methods

new(value = nil) click to toggle source
     # File lib/xsd/datatypes.rb, line 812
812:   def initialize(value = nil)
813:     init(Type, value)
814:   end

Private Instance Methods

_to_s() click to toggle source
     # File lib/xsd/datatypes.rb, line 829
829:   def _to_s
830:     s = format('%02d-%02d', @data.mon, @data.mday)
831:     add_tz(s)
832:   end
screen_data_str(t) click to toggle source
     # File lib/xsd/datatypes.rb, line 818
818:   def screen_data_str(t)
819:     /^(\d\d)-(\d\d)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip
820:     unless Regexp.last_match
821:       raise ValueSpaceError.new("#{ type }: cannot accept '#{ t }'.")
822:     end
823:     mon = $1.to_i
824:     mday = $2.to_i
825:     zonestr = $3
826:     DateTime.civil(1, mon, mday, 0, 0, 0, tz2of(zonestr))
827:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.