Class: Zakuro::Parameter::Catalog::Option
- Inherits:
-
Object
- Object
- Zakuro::Parameter::Catalog::Option
- Defined in:
- lib/zakuro/parameter/catalog/option.rb
Overview
Option オプション取得内容を変更する
* version:
Instance Attribute Summary collapse
-
#options ⇒ Array<String>
readonly
オプション.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options: []) ⇒ Option
constructor
初期化.
Constructor Details
#initialize(options: []) ⇒ Option
初期化
28 29 30 |
# File 'lib/zakuro/parameter/catalog/option.rb', line 28 def initialize(options: []) = end |
Instance Attribute Details
#options ⇒ Array<String> (readonly)
Returns オプション.
21 22 23 |
# File 'lib/zakuro/parameter/catalog/option.rb', line 21 def end |
Class Method Details
.validate(options:) ⇒ Array<Exception::Case::Preset>
検証する
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/zakuro/parameter/catalog/option.rb', line 42 def validate(options:) failed = [] return failed unless return failed if .is_a?(Hash) failed.push( Exception::Case::Preset.new( hash.class, template: Exception::Case::Pattern::INVALID_OPTION_TYPE ) ) failed end |