Method: Websitary::Configuration#get_optionvalue
- Defined in:
- lib/websitary/configuration.rb
#get_optionvalue(opt, val, default = nil) ⇒ Object
243 244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/websitary/configuration.rb', line 243 def get_optionvalue(opt, val, default=nil) case val when Symbol ok, val = get_option(opt, val) if ok val else default end else val end end |