In Files

  • xsd/datatypes.rb

Class/Module Index [+]

Quicksearch

XSD::XSDHexBinary

Constants

Type

Public Class Methods

new(value = nil) click to toggle source

String in Ruby could be a binary.

 
               # File xsd/datatypes.rb, line 876
def initialize(value = nil)
  init(Type, value)
end
            

Public Instance Methods

set_encoded(value) click to toggle source
 
               # 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
            
string() click to toggle source
 
               # File xsd/datatypes.rb, line 888
def string
  [@data].pack("H*")
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus