Class: Tabry::Models::ConstOption

Inherits:
OptionBase show all
Defined in:
lib/tabry/models/const_option.rb

Constant Summary

Constants inherited from OptionBase

OptionBase::FIELDS

Instance Attribute Summary

Attributes inherited from ConfigObject

#_raw, #_root

Instance Method Summary collapse

Methods inherited from OptionBase

#flatten

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
11
12
13
14
# File 'lib/tabry/models/const_option.rb', line 8

def options(token, _params)
  if value.start_with?(token)
    [value]
  else
    []
  end
end