method
validate_attribute
validate_attribute()
private
Hide source
# File lib/rss/rss.rb, line 1104 def validate_attribute _attrs.each do |a_name, required, alias_name| value = instance_variable_get("@#{alias_name || a_name}") if required and value.nil? raise MissingAttributeError.new(tag_name, a_name) end __send__("#{alias_name || a_name}=", value) end end