class UPnP::Control::Service::Types::Char

A one-byte string

Public Instance Methods

screen_data(value) click to toggle source

Ensures the string is only one character long.

# File lib/UPnP/control/service.rb, line 81
def screen_data(value)
  super

  if value.sub(%r./u, '').length > 1 then
    raise ValueSpaceError, "#{type}: cannot accept '#{value}'."
  end

  value
end