Class: ActiveGuide::SimpleAnalyzer::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/active_guide/simple_analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(verbose = true) ⇒ Env

Returns a new instance of Env.


6
7
8
9
10
11
# File 'lib/active_guide/simple_analyzer.rb', line 6

def initialize(verbose = true)
  @variables = OpenStruct.new
  @results = []
  @answer = nil
  @verbose = verbose
end

Instance Attribute Details

#answerObject

Returns the value of attribute answer


4
5
6
# File 'lib/active_guide/simple_analyzer.rb', line 4

def answer
  @answer
end

#resultsObject

Returns the value of attribute results


4
5
6
# File 'lib/active_guide/simple_analyzer.rb', line 4

def results
  @results
end

#variablesObject

Returns the value of attribute variables


4
5
6
# File 'lib/active_guide/simple_analyzer.rb', line 4

def variables
  @variables
end

#verboseObject

Returns the value of attribute verbose


4
5
6
# File 'lib/active_guide/simple_analyzer.rb', line 4

def verbose
  @verbose
end