XSD::XSDAnySimpleType
String in Ruby could be a binary.
# File lib/xsd/datatypes.rb, line 918 918: def initialize(value = nil) 919: init(Type, value) 920: end
# File lib/xsd/datatypes.rb, line 922 922: def set_encoded(value) 923: if /^[A-Za-z0-9+\/=]*$/ !~ value 924: raise ValueSpaceError.new("#{ type }: cannot accept '#{ value }'.") 925: end 926: @data = String.new(value).strip 927: @is_nil = false 928: end
# File lib/xsd/datatypes.rb, line 930 930: def string 931: @data.unpack("m")[0] 932: end
# File lib/xsd/datatypes.rb, line 936 936: def screen_data(value) 937: [value].pack("m").strip 938: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.