Class: Cosmos::CompletionTextEdit::SelectionDetails
- Defined in:
- lib/cosmos/gui/text/completion_text_edit.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#selection ⇒ Object
readonly
Returns the value of attribute selection.
Instance Method Summary collapse
-
#initialize ⇒ SelectionDetails
constructor
A new instance of SelectionDetails.
Constructor Details
#initialize ⇒ SelectionDetails
Returns a new instance of SelectionDetails.
27 28 29 30 |
# File 'lib/cosmos/gui/text/completion_text_edit.rb', line 27 def initialize @selection = Qt::TextEdit::ExtraSelection.new @format = @selection.format end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
25 26 27 |
# File 'lib/cosmos/gui/text/completion_text_edit.rb', line 25 def format @format end |
#selection ⇒ Object (readonly)
Returns the value of attribute selection.
24 25 26 |
# File 'lib/cosmos/gui/text/completion_text_edit.rb', line 24 def selection @selection end |