module Nokogiri::XML::AttributeCheck
Public Instance Methods
create_element_with_attrcheck(name, *args, &block)
click to toggle source
# File lib/moy_sklad/nokogiri/document.rb, line 8 def create_element_with_attrcheck(name, *args, &block) if args[0].is_a?(::MoySklad::Client::Attribute::MissingAttr) return create_element_without_attrcheck(name, nil, &block) end if !args[0].is_a?(Hash) return create_element_without_attrcheck(name, *args, &block) end args[0].delete_if do |k, v| v.is_a?(::MoySklad::Client::Attribute::MissingAttr) end create_element_without_attrcheck(name, *args, &block) end