Included Modules

Files

Class Index [+]

Quicksearch

XSD::XSDGMonth

Constants

Type

Public Class Methods

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

Private Instance Methods

_to_s() click to toggle source
     # File lib/xsd/datatypes.rb, line 881
881:   def _to_s
882:     s = format('%02d', @data.mon)
883:     add_tz(s)
884:   end
screen_data_str(t) click to toggle source
     # File lib/xsd/datatypes.rb, line 871
871:   def screen_data_str(t)
872:     /^(\d\d)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip
873:     unless Regexp.last_match
874:       raise ValueSpaceError.new("#{ type }: cannot accept '#{ t }'.")
875:     end
876:     mon = $1.to_i
877:     zonestr = $2
878:     DateTime.civil(1, mon, 1, 0, 0, 0, tz2of(zonestr))
879:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.