Class: Ninny::Commands::OutputDatedBranch
- Inherits:
-
Ninny::Command
- Object
- Ninny::Command
- Ninny::Commands::OutputDatedBranch
- Defined in:
- lib/ninny/commands/output_dated_branch.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#branch_type ⇒ Object
readonly
Returns the value of attribute branch_type.
Instance Method Summary collapse
- #execute(output: $stdout) ⇒ Object
-
#initialize(options) ⇒ OutputDatedBranch
constructor
A new instance of OutputDatedBranch.
Methods inherited from Ninny::Command
#command, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(options) ⇒ OutputDatedBranch
Returns a new instance of OutputDatedBranch.
10 11 12 13 |
# File 'lib/ninny/commands/output_dated_branch.rb', line 10 def initialize() @branch_type = [:branch_type] || Git::STAGING_PREFIX @options = end |
Instance Attribute Details
#branch_type ⇒ Object (readonly)
Returns the value of attribute branch_type.
8 9 10 |
# File 'lib/ninny/commands/output_dated_branch.rb', line 8 def branch_type @branch_type end |