lib/reline/config.rb in reline-0.0.7 vs lib/reline/config.rb in reline-0.1.0

- old
+ new

@@ -155,11 +155,11 @@ def handle_directive(directive, file, no) directive, args = directive.split(' ') case directive when 'if' condition = false - case args # TODO: variables + case args when 'mode' when 'term' when 'version' else # application name condition = true if args == 'Ruby' @@ -182,10 +182,10 @@ end end def bind_variable(name, value) case name - when VARIABLE_NAMES then + when *VARIABLE_NAMES then variable_name = :"@#{name.tr(?-, ?_)}" instance_variable_set(variable_name, value.nil? || value == '1' || value == 'on') when 'bell-style' @bell_style = case value