XSD::XSDAnySimpleType
String in Ruby could be a binary.
# File lib/xsd/datatypes.rb, line 891 891: def initialize(value = nil) 892: init(Type, value) 893: end
# File lib/xsd/datatypes.rb, line 895 895: def set_encoded(value) 896: if /^[0-9a-fA-F]*$/ !~ value 897: raise ValueSpaceError.new("#{ type }: cannot accept '#{ value }'.") 898: end 899: @data = String.new(value).strip 900: @is_nil = false 901: end
# File lib/xsd/datatypes.rb, line 903 903: def string 904: [@data].pack("H*") 905: end
# File lib/xsd/datatypes.rb, line 909 909: def screen_data(value) 910: value.unpack("H*")[0].tr('a-f', 'A-F') 911: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.