Class: Tabry::Models::ShellOption
- Inherits:
-
OptionBase
- Object
- ConfigObject
- OptionBase
- Tabry::Models::ShellOption
- Defined in:
- lib/tabry/models/shell_option.rb
Constant Summary
Constants inherited from OptionBase
Instance Attribute Summary
Attributes inherited from ConfigObject
Instance Method Summary collapse
Methods inherited from OptionBase
Methods inherited from ConfigObject
as_json, #as_json, #assert_of_class, #init_field_boolean, #init_field_list_object, #init_field_object, #init_field_string, #init_field_string_array, #initialize, #inspect, #to_s
Constructor Details
This class inherits a constructor from Tabry::Models::ConfigObject
Instance Method Details
#options(token, _params) ⇒ Object
8 9 10 |
# File 'lib/tabry/models/shell_option.rb', line 8 def (token, _params) `#{value}`.chomp.split("\n").select { |opt| opt.start_with?(token) } end |