Class: WIP::Runner::Spec::Helpers::CommandHelpers::ExampleCommands::Simple

Inherits:
Command
  • Object
show all
Defined in:
lib/wip/runner/spec/helpers/command_helpers.rb

Instance Attribute Summary

Attributes inherited from Command

#parser

Instance Method Summary collapse

Methods inherited from Command

argument, arguments, commands, #initialize, options, overview, #run, signature, workflow

Constructor Details

This class inherits a constructor from WIP::Runner::Command

Instance Method Details

#execute(args, options) ⇒ Object



21
22
23
# File 'lib/wip/runner/spec/helpers/command_helpers.rb', line 21

def execute(args, options)
  @executed = true
end

#executed?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/wip/runner/spec/helpers/command_helpers.rb', line 25

def executed?
  !! @executed
end