Class: Isomorfeus::Puppetmaster::Select

Inherits:
Input
  • Object
show all
Defined in:
lib/isomorfeus/puppetmaster/node/select.rb

Defined Under Namespace

Classes: Option

Constant Summary

Constants inherited from Node

Node::SUPPORTED_HTML_AND_SVG_ELEMENTS, Node::SUPPORTED_HTML_ELEMENTS, Node::SUPPORTED_SVG_ELEMENTS

Instance Attribute Summary

Attributes inherited from Input

#type

Attributes inherited from Node

#css_selector, #document, #handle, #name, #tag, #xpath_query

Instance Method Summary collapse

Methods inherited from Input

#multiple?, #readonly?

Methods inherited from Node

#==, #[], #evaluate_ruby, #evaluate_with_opal, #get_attribute, #get_property, #has_content?, #has_css?, #has_text?, #has_xpath?, #html, #initialize, #inner_html, #method_missing, new_by_tag, #open_document_by, #parents, #respond_to?, #within

Methods included from SelfForwardable

extended

Constructor Details

This class inherits a constructor from Isomorfeus::Puppetmaster::Node

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Isomorfeus::Puppetmaster::Node

Instance Method Details

#select(option) ⇒ Object



19
20
21
# File 'lib/isomorfeus/puppetmaster/node/select.rb', line 19

def select(option)
  # find option.select
end

#selectedObject



23
24
25
# File 'lib/isomorfeus/puppetmaster/node/select.rb', line 23

def selected
  # find selected options
end

#selected?(option) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/isomorfeus/puppetmaster/node/select.rb', line 27

def selected?(option)
  # find option.selected?
end

#unselectObject



31
32
33
# File 'lib/isomorfeus/puppetmaster/node/select.rb', line 31

def unselect
  # find option.unselect
end