Method: Element#html

Defined in:
lib/red_query/element.rb

#html(value = nil) ⇒ Object



116
117
118
119
120
121
122
# File 'lib/red_query/element.rb', line 116

def html(value = nil)
  if value.nil?
    String.new(`#{@jq_native}.html()`)
  else
    `#{@jq_native}.html(#{value}.__value__)`
  end
end