Class: RubyUI::Input
- Defined in:
- lib/ruby_ui/input/input.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(type: :string, **attrs) ⇒ Input
constructor
A new instance of Input.
- #view_template ⇒ Object
Constructor Details
#initialize(type: :string, **attrs) ⇒ Input
Returns a new instance of Input.
5 6 7 8 |
# File 'lib/ruby_ui/input/input.rb', line 5 def initialize(type: :string, **attrs) @type = type.to_sym super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
10 11 12 |
# File 'lib/ruby_ui/input/input.rb', line 10 def view_template input(type: @type, **attrs) end |