# 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.
Generated with the Darkfish Rdoc Generator 1.1.6.