Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more
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.7
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.44.0.