Method: Cinch::ISupport#parse

Defined in:
lib/cinch/isupport.rb

#parse(*options)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.



86
87
88
89
90
91
92
93
94
95
96
# File 'lib/cinch/isupport.rb', line 86

def parse(*options)
  options.each do |option|
    name, value = option.split("=")
    if value
      proc = @@mappings.find {|key, _| key.include?(name)}
      self[name] = (proc && proc[1].call(value)) || value
    else
      self[name] = true
    end
  end
end