Class: KubeDeployTools::StrictHash

Inherits:
Object
  • Object
show all
Defined in:
lib/kube_deploy_tools/templater.rb

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ StrictHash

Returns a new instance of StrictHash.



46
47
48
# File 'lib/kube_deploy_tools/templater.rb', line 46

def initialize(h)
  @h = h
end

Instance Method Details

#[](k) ⇒ Object



50
51
52
# File 'lib/kube_deploy_tools/templater.rb', line 50

def [](k)
  @h.fetch(k)
end

#extra_flag(k) ⇒ Object



58
59
60
# File 'lib/kube_deploy_tools/templater.rb', line 58

def extra_flag(k)
  @h[k]
end

#fetch(*args) ⇒ Object



54
55
56
# File 'lib/kube_deploy_tools/templater.rb', line 54

def fetch(*args)
  @h.fetch(*args)
end