Class: Lemon::TestAdvice
- Inherits:
-
Object
- Object
- Lemon::TestAdvice
- Defined in:
- lib/lemon/test_advice.rb
Overview
Test Advice
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
- #[](type) ⇒ Object
-
#initialize ⇒ TestAdvice
constructor
New case instance.
- #initialize_copy(original) ⇒ Object
Constructor Details
#initialize ⇒ TestAdvice
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
#table ⇒ Object (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 |