Class: Lemon::TestAdvice

Inherits:
Object
  • Object
show all
Defined in:
lib/lemon/test_advice.rb

Overview

Test Advice

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTestAdvice

New case instance.



17
18
19
# File 'lib/lemon/test_advice.rb', line 17

def initialize
  @table = Hash.new{ |h,k| h[k] = {} }
end

Instance Attribute Details

#tableObject (readonly)

Returns the value of attribute table.



14
15
16
# File 'lib/lemon/test_advice.rb', line 14

def table
  @table
end

Instance Method Details

#[](type) ⇒ Object



27
28
29
# File 'lib/lemon/test_advice.rb', line 27

def [](type)
  @table[type.to_sym]
end

#initialize_copy(original) ⇒ Object



22
23
24
# File 'lib/lemon/test_advice.rb', line 22

def initialize_copy(original)
  @table = original.table.clone
end