Class: RSchema::Options
- Inherits:
-
Object
- Object
- RSchema::Options
- Defined in:
- lib/rschema/options.rb
Overview
Settings, passed in as an argument when calling schemas
Class Method Summary collapse
Instance Method Summary collapse
- #fail_fast? ⇒ Boolean
-
#initialize(fail_fast: false) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(fail_fast: false) ⇒ Options
Returns a new instance of Options.
16 17 18 |
# File 'lib/rschema/options.rb', line 16 def initialize(fail_fast: false) @fail_fast = fail_fast end |
Class Method Details
.default ⇒ Object
8 9 10 |
# File 'lib/rschema/options.rb', line 8 def self.default @default ||= new end |
.fail_fast ⇒ Object
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 |