class 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 917
def initialize(value = nil)
  init(Type, value)
end

Public Instance Methods

set_encoded(value) click to toggle source
# File lib/xsd/datatypes.rb, line 921
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 lib/xsd/datatypes.rb, line 929
def string
  @data.unpack("m")[0]
end

Private Instance Methods

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