Class: CARPS::Test::Mutate

Inherits:
Object
  • Object
show all
Includes:
DRbUndumped
Defined in:
lib/carps/util/process.rb

Instance Method Summary collapse

Constructor Details

#initializeMutate

Returns a new instance of Mutate.



124
125
126
127
# File 'lib/carps/util/process.rb', line 124

def initialize
   @works = "WORK IT DOES NOT!"
   @working = false
end

Instance Method Details

#mutate!Object



129
130
131
132
# File 'lib/carps/util/process.rb', line 129

def mutate!
   @works = "It works!"
   @working = true
end

#working?Boolean

Returns:

  • (Boolean)


138
139
140
# File 'lib/carps/util/process.rb', line 138

def working?
   @working
end

#works?Boolean

Returns:

  • (Boolean)


134
135
136
# File 'lib/carps/util/process.rb', line 134

def works?
   @works
end