Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • xsd/datatypes.rb

Class/Module Index [+]

Quicksearch

XSD::XSDBase64Binary

Constants

Type

Public Class Methods

new(value = nil) click to toggle source

String in Ruby could be a binary.

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

Public Instance Methods

set_encoded(value) click to toggle source
 
               # File xsd/datatypes.rb, line 907
def set_encoded(value)
  if /^[A-Za-z0-9+\/=]*$/ !~ 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 915
def string
  @data.unpack("m")[0]
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