class Hpricot::BaseEle

def self.alterable(*fields)

def self.alterable(*fields)
  attr_accessor(*fields)
  fields.each do |f|
    define_method("#{f}=") do |v|
      altered!
      instance_variable_set("@#{f}", v)
    end
  end
end