Class: Guard::RSpec::Command

Inherits:
String
  • Object
show all
Defined in:
lib/guard/rspec/command.rb

Constant Summary collapse

FAILURE_EXIT_CODE =
2

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(paths, options = {}) ⇒ Command

Returns a new instance of Command.



13
14
15
16
17
# File 'lib/guard/rspec/command.rb', line 13

def initialize(paths, options = {})
  @paths = paths
  @options = options
  super(_parts.join(" "))
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



11
12
13
# File 'lib/guard/rspec/command.rb', line 11

def options
  @options
end

#pathsObject

Returns the value of attribute paths.



11
12
13
# File 'lib/guard/rspec/command.rb', line 11

def paths
  @paths
end