Class: PageBuilder::Elements::Inputs::Checkbox
- Inherits:
-
PageBuilder::Elements::Input
- Object
- Nokogiri::XML::Element
- Basic
- PageBuilder::Elements::Input
- PageBuilder::Elements::Inputs::Checkbox
- Defined in:
- lib/pagebuilder/elements/inputs/checkbox.rb
Overview
Creates checkbox input nodes and adds some helper methods for commonly used attributes
Instance Method Summary collapse
-
#initialize(*args) ⇒ Checkbox
constructor
A new instance of Checkbox.
Methods inherited from PageBuilder::Elements::Input
new, #type, #type=, #value, #value=
Methods inherited from Basic
Constructor Details
#initialize(*args) ⇒ Checkbox
Returns a new instance of Checkbox.
11 12 13 14 |
# File 'lib/pagebuilder/elements/inputs/checkbox.rb', line 11 def initialize(*args) super self.type = 'checkbox' end |