lib/gnuplotrb/mixins/option_handling.rb
##
# Return current option value if no value given. Create new
# object with given option set if value given.
Return current option value if no value given. Create new
object with given option set if value given.
Return current option value if no value given . Create new object with given option set if value given .
def option(key, *value)
      if value.empty?
        value = options[key]
        value = value[0] if value && value.size == 1
        value
      else
        options(key => value)
      end
    end
def option ( key , * value ) if value . empty? value = options [ key ] value = value [ 0 ] if value && value . size == 1 value else options ( key => value ) end end
Return current option value if no value given.
Return current option value if no value given .
key
<not_specific>
value
<not_specific>