class GhInspector::Issue
def initialize(*h)
def initialize(*h) if h.length == 1 && h.first.kind_of?(Hash) h.first.each { |k, v| send("#{k}=", v) if public_methods.include?("#{k}=".to_sym) } end end
def initialize(*h) if h.length == 1 && h.first.kind_of?(Hash) h.first.each { |k, v| send("#{k}=", v) if public_methods.include?("#{k}=".to_sym) } end end