Class: OctoMerge::Options

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.option(key) ⇒ Object



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

def self.option(key)
  define_method(key) { self[key] }
end

Instance Method Details

#[](key) ⇒ Object



17
18
19
# File 'lib/octo_merge/options.rb', line 17

def [](key)
  data[key]
end

#cli_options=(options) ⇒ Object



21
22
23
24
# File 'lib/octo_merge/options.rb', line 21

def cli_options=(options)
  reset_cache
  @cli_options = options
end