Class: Isomorfeus::Puppetmaster::Input

Inherits:
Node
  • Object
show all
Defined in:
lib/isomorfeus/puppetmaster/node/input.rb

Direct Known Subclasses

Checkbox, Filechooser, Radiobutton, Select, Textarea

Constant Summary

Constants inherited from Node

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

Instance Attribute Summary collapse

Attributes inherited from Node

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

Instance Method Summary collapse

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 Attribute Details

#typeObject

Returns the value of attribute type.



10
11
12
# File 'lib/isomorfeus/puppetmaster/node/input.rb', line 10

def type
  @type
end

Instance Method Details

#multiple?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/isomorfeus/puppetmaster/node/input.rb', line 12

def multiple?
  !!self[:multiple]
end

#readonly?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/isomorfeus/puppetmaster/node/input.rb', line 16

def readonly?
  !!self[:readOnly]
end