Class: Vedeu::Cells::TopLeft Private
- Defined in:
- lib/vedeu/cells/borders/vertices/top_left.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Provides the character/escape sequence to draw the top left border with a custom value, colour and style.
Instance Attribute Summary
Attributes inherited from Empty
Instance Method Summary collapse
- #as_html ⇒ String private
-
#defaults ⇒ Hash<Symbol => void>
private
private
The default options/attributes for a new instance of this class.
- #type ⇒ Symbol private
Methods inherited from Corner
Methods inherited from Border
Methods inherited from Empty
#border, #eql?, #geometry, #interface, #text, #to_ast, #to_h, #to_html, #value?
Methods included from Repositories::Defaults
Methods included from Vedeu::Common
#absent?, #array?, #boolean, #boolean?, #empty_value?, #escape?, #falsy?, #hash?, #line_model?, #numeric?, #positionable?, #present?, #snake_case, #stream_model?, #string?, #symbol?, #truthy?, #view_model?
Methods included from Presentation::Styles
#render_style, #style, #style=, #style?
Methods included from Presentation::Parent
Methods included from Presentation::Position
#position, #position=, #position?, #render_position, #x, #y
Methods included from Presentation::Colour
#background, #background=, #colour, #colour=, #colour?, #foreground, #foreground=, #interface, #named_colour, #named_colour?, #parent_colour, #parent_colour?, #render_colour
Methods included from Presentation
Instance Method Details
#as_html ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/vedeu/cells/borders/vertices/top_left.rb', line 15 def as_html '┌' end |
#defaults ⇒ Hash<Symbol => void> (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The default options/attributes for a new instance of this class.
27 28 29 30 |
# File 'lib/vedeu/cells/borders/vertices/top_left.rb', line 27 def defaults super.merge!(position: Vedeu::Geometries::Position.new(y, x), value: Vedeu.esc.top_left) end |
#type ⇒ Symbol
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'lib/vedeu/cells/borders/vertices/top_left.rb', line 20 def type :top_left end |