class Attributary::Config

Attributes

collection_error[RW]
dsl_name[RW]
raise_errors[RW]
strict_mode[RW]
validation_error[RW]

Public Class Methods

new() click to toggle source
# File lib/attributary/config.rb, line 17
def initialize
  @validation_error = ::Attributary::ValidationError
  @collection_error = ::Attributary::CollectionValidationError
  @strict_mode = false
  @dsl_name = :attribute
  @raise_errors = false
end

Public Instance Methods

raise_errors?() click to toggle source
# File lib/attributary/config.rb, line 25
def raise_errors?
  @raise_errors
end
strict_mode?() click to toggle source
# File lib/attributary/config.rb, line 29
def strict_mode?
  @strict_mode
end