class Nokogiri::XML::Node

I think it’s a bad idea to extend the Nokogiri library cause it makes a too big dependency on Genit. It will be much better to do a little wrapper over Nokogiri::XML::Node.

Public Instance Methods

genit_class?() click to toggle source
# File lib/genit/extensions/nokogiri_extension.rb, line 10
def genit_class?
  if self['class']
    true
  else
    false
  end
end
genit_here?() click to toggle source
# File lib/genit/extensions/nokogiri_extension.rb, line 18
def genit_here?
  if self['here']
    true
  else
    false
  end
end
genit_what?() click to toggle source
# File lib/genit/extensions/nokogiri_extension.rb, line 26
def genit_what?
  if self['what']
    true
  else
    false
  end
end