Class: RSchema::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/rschema/options.rb

Overview

Settings, passed in as an argument when calling schemas

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fail_fast: false) ⇒ Options


16
17
18
# File 'lib/rschema/options.rb', line 16

def initialize(fail_fast: false)
  @fail_fast = fail_fast
end

Class Method Details

.defaultObject


8
9
10
# File 'lib/rschema/options.rb', line 8

def self.default
  @default ||= new
end

.fail_fastObject


12
13
14
# File 'lib/rschema/options.rb', line 12

def self.fail_fast
  @fail_fast ||= new(fail_fast: true)
end

Instance Method Details

#fail_fast?Boolean


20
21
22
# File 'lib/rschema/options.rb', line 20

def fail_fast?
  @fail_fast
end