Sha256: 98e14c80d0d4ea14cc5834011eb1db840c80ee6049b6a6922f2405434e4871af

Contents?: true

Size: 209 Bytes

Versions: 1

Compression:

Stored size: 209 Bytes

Contents

class Mechanize::Page < Mechanize::File
  elements_with :button

  ##
  # Return a list of all buttons
  def buttons
    @buttons ||=
        search('button').map { |node| Button.new(node, self) }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mech-js-0.0.1 lib/mech_js/page.rb