Class: Dry::CLI::Help::Formatter::Row
- Inherits:
-
Data
- Object
- Data
- Dry::CLI::Help::Formatter::Row
- Defined in:
- lib/dry/cli/help/formatter.rb
Overview
One line of a definition list: a term, and the text that describes it.
Instance Attribute Summary collapse
-
#term ⇒ Object
readonly
Returns the value of attribute term.
-
#term_style ⇒ Object
readonly
Returns the value of attribute term_style.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#text_style ⇒ Object
readonly
Returns the value of attribute text_style.
Instance Method Summary collapse
-
#initialize(term:, text: nil, term_style: :command, text_style: nil) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(term:, text: nil, term_style: :command, text_style: nil) ⇒ Row
Returns a new instance of Row.
17 18 19 |
# File 'lib/dry/cli/help/formatter.rb', line 17 def initialize(term:, text: nil, term_style: :command, text_style: nil) super end |
Instance Attribute Details
#term ⇒ Object (readonly)
Returns the value of attribute term
16 17 18 |
# File 'lib/dry/cli/help/formatter.rb', line 16 def term @term end |
#term_style ⇒ Object (readonly)
Returns the value of attribute term_style
16 17 18 |
# File 'lib/dry/cli/help/formatter.rb', line 16 def term_style @term_style end |
#text ⇒ Object (readonly)
Returns the value of attribute text
16 17 18 |
# File 'lib/dry/cli/help/formatter.rb', line 16 def text @text end |
#text_style ⇒ Object (readonly)
Returns the value of attribute text_style
16 17 18 |
# File 'lib/dry/cli/help/formatter.rb', line 16 def text_style @text_style end |