Module: FlightConfig::TTYConfigAccessor

Defined in:
lib/flight_config/accessor.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



38
39
40
# File 'lib/flight_config/accessor.rb', line 38

def [](key)
  fetch(key)
end

#[]=(key, value) ⇒ Object



42
43
44
45
46
47
48
# File 'lib/flight_config/accessor.rb', line 42

def []=(key, value)
  if value.nil?
    delete(key)
  else
    set(key, value: value)
  end
end