Method: Dply::BaseConfig#set

Defined in:
lib/dply/base_config.rb

#set(opt, value, &block) ⇒ Object



92
93
94
95
96
97
98
# File 'lib/dply/base_config.rb', line 92

def set(opt, value, &block)
  if block
    @opts_struct.set_proc(opt, block)
  else
    @opts_struct.public_send("#{opt}=", value)
  end
end