method

set_encoded

ruby latest stable - Class: XSD::XSDBase64Binary

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

set_encoded(value)
public

No documentation available.

# File lib/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