Class: Guard::Rack::CustomProcess

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/rack/custom_process.rb

Direct Known Subclasses

Nix, Windows

Defined Under Namespace

Classes: Nix, Windows

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ CustomProcess

Returns a new instance of CustomProcess.



18
19
20
# File 'lib/guard/rack/custom_process.rb', line 18

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/guard/rack/custom_process.rb', line 6

def options
  @options
end

Class Method Details

.new(options = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/guard/rack/custom_process.rb', line 8

def self.new(options = {})
  os_instance = if Gem.win_platform?
                  Windows.allocate
                else
                  Nix.allocate
                end
  os_instance.send :initialize, options
  os_instance
end