class XSD::XSDNormalizedString

Derived types

Constants

Type

Public Class Methods

new(value = nil) click to toggle source
# File lib/xsd/datatypes.rb, line 1004
def initialize(value = nil)
  init(Type, value)
end

Private Instance Methods

screen_data(value) click to toggle source
Calls superclass method XSD::XSDString#screen_data
# File lib/xsd/datatypes.rb, line 1010
def screen_data(value)
  super
  if /[\t\r\n]/ =~ value
    raise ValueSpaceError.new("#{ type }: cannot accept '#{ value }'.")
  end
  value
end