Method: OBF::Sgrid.html_at

Defined in:
lib/obf/sgrid.rb

.html_at(elem, css) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/obf/sgrid.rb', line 4

def self.html_at(elem, css)
  res = elem.css(css)[0]
  if res && res.inner_html && res.inner_html.length > 0
    res.inner_html
  else
    nil
  end
end