Files

Class Index [+]

Quicksearch

XSD::XSDBase64Binary

Constants

Type

Public Class Methods

new(value = nil) click to toggle source

String in Ruby could be a binary.

     # File lib/xsd/datatypes.rb, line 918
918:   def initialize(value = nil)
919:     init(Type, value)
920:   end

Public Instance Methods

set_encoded(value) click to toggle source
     # File lib/xsd/datatypes.rb, line 922
922:   def set_encoded(value)
923:     if /^[A-Za-z0-9+\/=]*$/ !~ value
924:       raise ValueSpaceError.new("#{ type }: cannot accept '#{ value }'.")
925:     end
926:     @data = String.new(value).strip
927:     @is_nil = false
928:   end
string() click to toggle source
     # File lib/xsd/datatypes.rb, line 930
930:   def string
931:     @data.unpack("m")[0]
932:   end

Private Instance Methods

screen_data(value) click to toggle source
     # File lib/xsd/datatypes.rb, line 936
936:   def screen_data(value)
937:     [value].pack("m").strip
938:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.