method

set_encoded

ruby latest stable - Class: XSD::XSDHexBinary

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 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