Module: KubeDSL::RbiHelpers
- Includes:
- StringHelpers
- Included in:
- ArrayFieldRes, FieldRes
- Defined in:
- lib/kube-dsl/rbi_helpers.rb
Constant Summary collapse
- TYPE_MAP =
{ 'boolean' => 'T::Boolean', 'number' => 'Integer' }
Constants included from StringHelpers
Instance Method Summary collapse
Methods included from StringHelpers
#capitalize, #underscore, #unkeywordify
Instance Method Details
#rbi_type_for(type_str) ⇒ Object
13 14 15 |
# File 'lib/kube-dsl/rbi_helpers.rb', line 13 def rbi_type_for(type_str) TYPE_MAP.fetch(type_str) { capitalize(type_str) } end |