Class: Sod::Presenters::Action
- Inherits:
-
Object
- Object
- Sod::Presenters::Action
- Extended by:
- Forwardable
- Defined in:
- lib/sod/presenters/action.rb
Overview
Aids in rendering an action for display.
Instance Method Summary collapse
- #colored_documentation ⇒ Object
- #colored_handle ⇒ Object
-
#initialize(record) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(record) ⇒ Action
Returns a new instance of Action.
18 19 20 21 |
# File 'lib/sod/presenters/action.rb', line 18 def initialize(record, **) super(**) @record = record end |
Instance Method Details
#colored_documentation ⇒ Object
25 |
# File 'lib/sod/presenters/action.rb', line 25 def colored_documentation = [*ancillary, color_allows, color_default].tap(&:compact!) |
#colored_handle ⇒ Object
23 |
# File 'lib/sod/presenters/action.rb', line 23 def colored_handle = [color_aliases, argument].tap(&:compact!).join(" ") |