Files

Class Index [+]

Quicksearch

XSD::XSDBoolean

Constants

Type

Public Class Methods

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

Private Instance Methods

screen_data(value) click to toggle source
     # File lib/xsd/datatypes.rb, line 227
227:   def screen_data(value)
228:     if value.is_a?(String)
229:       str = value.strip
230:       if str == 'true' || str == '1'
231:         true
232:       elsif str == 'false' || str == '0'
233:         false
234:       else
235:         raise ValueSpaceError.new("#{ type }: cannot accept '#{ str }'.")
236:       end
237:     else
238:       value ? true : false
239:     end
240:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.