Class: Rgltf::Validator::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/rgltf/validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



17
18
19
# File 'lib/rgltf/validator.rb', line 17

def errors
  @errors
end

#warningsObject

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



17
18
19
# File 'lib/rgltf/validator.rb', line 17

def warnings
  @warnings
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/rgltf/validator.rb', line 18

def valid?
  errors.empty?
end