Class: UPnP::Control::Service::Types::Char
- Inherits:
-
SOAP::SOAPString
- Object
- SOAP::SOAPString
- UPnP::Control::Service::Types::Char
- Defined in:
- lib/UPnP/control/service.rb
Overview
A one-byte string
Instance Method Summary collapse
-
#screen_data(value) ⇒ Object
Ensures the string is only one character long.
Instance Method Details
#screen_data(value) ⇒ Object
Ensures the string is only one character long.
109 110 111 112 113 114 115 116 117 |
# File 'lib/UPnP/control/service.rb', line 109 def screen_data(value) super if value.sub(/./mu, '').length > 1 then raise ValueSpaceError, "#{type}: cannot accept '#{value}'." end value end |