Class: HDLRuby::High::Std::Board::HEXA
- Inherits:
-
Struct
- Object
- Struct
- HDLRuby::High::Std::Board::HEXA
- Defined in:
- lib/HDLRuby/ui/hruby_board.rb
Overview
Class describing an hexadecimal display.
Instance Attribute Summary collapse
-
#hread ⇒ Object
Returns the value of attribute hread.
-
#id ⇒ Object
Returns the value of attribute id.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
Instance Attribute Details
#hread ⇒ Object
Returns the value of attribute hread
119 120 121 |
# File 'lib/HDLRuby/ui/hruby_board.rb', line 119 def hread @hread end |
#id ⇒ Object
Returns the value of attribute id
119 120 121 |
# File 'lib/HDLRuby/ui/hruby_board.rb', line 119 def id @id end |
#size ⇒ Object
Returns the value of attribute size
119 120 121 |
# File 'lib/HDLRuby/ui/hruby_board.rb', line 119 def size @size end |
Instance Method Details
#to_html ⇒ Object
120 121 122 123 124 125 126 |
# File 'lib/HDLRuby/ui/hruby_board.rb', line 120 def to_html return "<div class=\"hexaset\" id=\"#{self.id}\" " + "data-width=\"#{self.size}\" data-value=\"0\">" + '<span class="name">' + self.hread.to_s + '</span>' + '<span> </span>' + "<span class=\"matrix\">#{"0"*self.size}</span>" + "</div>\\n" end |