class Bobkit::OptionsBase::OptionsHandler
Attributes
options[RW]
Public Class Methods
new()
click to toggle source
# File lib/bobkit/options_base.rb, line 20 def initialize @options = {} end
Public Instance Methods
setopt(key, value=nil, default=nil)
click to toggle source
# File lib/bobkit/options_base.rb, line 24 def setopt(key, value=nil, default=nil) options[key] = value if value options[key] ||= default options[key] end