XSD::XSDAnySimpleType
String in Ruby could be a binary.
# File xsd/datatypes.rb, line 876 def initialize(value = nil) init(Type, value) end
# File xsd/datatypes.rb, line 880 def set_encoded(value) if /^[0-9a-fA-F]*$/ !~ value raise ValueSpaceError.new("#{ type }: cannot accept '#{ value }'.") end @data = String.new(value).strip @is_nil = false end
# File xsd/datatypes.rb, line 888 def string [@data].pack("H*") end
This page was generated for Ruby 1.8.6
Generated with Ruby-doc Rdoc Generator 0.44.0.