Class: Options

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

Class Method Summary collapse

Class Method Details

.get(path) ⇒ Object



5
6
7
# File 'lib/options.rb', line 5

def get(path)
	@options&.dig(*path.split('.'))
end

.set(options) ⇒ Object



9
10
11
# File 'lib/options.rb', line 9

def set(options)
	@options = options
end