Class: Mj::Git::Commands::CheckoutCommand
- Inherits:
-
Object
- Object
- Mj::Git::Commands::CheckoutCommand
- Defined in:
- lib/mj/git/commands/checkout_command.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
Instance Method Summary collapse
- #dry_run? ⇒ Boolean
-
#initialize(branch:, options: {}) ⇒ CheckoutCommand
constructor
A new instance of CheckoutCommand.
Constructor Details
#initialize(branch:, options: {}) ⇒ CheckoutCommand
Returns a new instance of CheckoutCommand.
9 10 11 12 |
# File 'lib/mj/git/commands/checkout_command.rb', line 9 def initialize(branch:, options: {}) @branch = branch @options = end |
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
7 8 9 |
# File 'lib/mj/git/commands/checkout_command.rb', line 7 def branch @branch end |
Instance Method Details
#dry_run? ⇒ Boolean
14 15 16 |
# File 'lib/mj/git/commands/checkout_command.rb', line 14 def dry_run? @options[:dry_run] end |