Class: HDLRuby::High::Std::Board::TEXT
- Inherits:
-
Struct
- Object
- Struct
- HDLRuby::High::Std::Board::TEXT
- Defined in:
- lib/HDLRuby/ui/hruby_board.rb
Overview
Class describing a text-based input.
Instance Attribute Summary collapse
-
#hwrite ⇒ Object
Returns the value of attribute hwrite.
-
#id ⇒ Object
Returns the value of attribute id.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
Instance Attribute Details
#hwrite ⇒ Object
Returns the value of attribute hwrite
74 75 76 |
# File 'lib/HDLRuby/ui/hruby_board.rb', line 74 def hwrite @hwrite end |
#id ⇒ Object
Returns the value of attribute id
74 75 76 |
# File 'lib/HDLRuby/ui/hruby_board.rb', line 74 def id @id end |
#size ⇒ Object
Returns the value of attribute size
74 75 76 |
# File 'lib/HDLRuby/ui/hruby_board.rb', line 74 def size @size end |
Instance Method Details
#to_html ⇒ Object
75 76 77 78 79 80 81 82 83 84 |
# File 'lib/HDLRuby/ui/hruby_board.rb', line 75 def to_html return "<div class=\"textset\" id=\"#{self.id}\" data-value=\"0\">\\n" + '<form onSubmit="text_submit(this); return false">\\n' + '<span class="name">' + self.hwrite.to_s.chop + '</span>' + '<span> </span>' + '<input class="matrix_in" type="text" name="text" ' + 'placeholder="Enter an expression">' + "</form>\\n" + "</div>\\n" end |