Class: TansParser::Element
- Inherits:
-
Struct
- Object
- Struct
- TansParser::Element
- Defined in:
- lib/tans_parser/element.rb
Overview
Describes a recognized UI element on the terminal screen.
Instance Attribute Summary collapse
-
#bg ⇒ Object
Returns the value of attribute bg.
-
#checked ⇒ Object
Returns the value of attribute checked.
-
#col ⇒ Object
Returns the value of attribute col.
-
#fg ⇒ Object
Returns the value of attribute fg.
-
#focused ⇒ Object
Returns the value of attribute focused.
-
#height ⇒ Object
Returns the value of attribute height.
-
#role ⇒ Object
Returns the value of attribute role.
-
#row ⇒ Object
Returns the value of attribute row.
-
#text ⇒ Object
Returns the value of attribute text.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
Instance Attribute Details
#bg ⇒ Object
Returns the value of attribute bg
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def bg @bg end |
#checked ⇒ Object
Returns the value of attribute checked
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def checked @checked end |
#col ⇒ Object
Returns the value of attribute col
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def col @col end |
#fg ⇒ Object
Returns the value of attribute fg
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def fg @fg end |
#focused ⇒ Object
Returns the value of attribute focused
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def focused @focused end |
#height ⇒ Object
Returns the value of attribute height
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def height @height end |
#role ⇒ Object
Returns the value of attribute role
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def role @role end |
#row ⇒ Object
Returns the value of attribute row
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def row @row end |
#text ⇒ Object
Returns the value of attribute text
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def text @text end |
#width ⇒ Object
Returns the value of attribute width
5 6 7 |
# File 'lib/tans_parser/element.rb', line 5 def width @width end |
Instance Method Details
#to_h ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/tans_parser/element.rb', line 15 def to_h { role: role, text: text, row: row, col: col, width: width, height: height, checked: checked, focused: focused, fg: fg, bg: bg, }.compact end |