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