Class: Lime::Advice
- Inherits:
-
Object
- Object
- Lime::Advice
- Defined in:
- lib/lime/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 ⇒ Advice
constructor
New case instance.
- #initialize_copy(original) ⇒ Object
Constructor Details
#initialize ⇒ Advice
New case instance.
10 11 12 |
# File 'lib/lime/advice.rb', line 10 def initialize @table = Hash.new{ |h,k| h[k] = {} } end |
Instance Attribute Details
#table ⇒ Object (readonly)
Returns the value of attribute table.
7 8 9 |
# File 'lib/lime/advice.rb', line 7 def table @table end |
Instance Method Details
#[](type) ⇒ Object
20 21 22 |
# File 'lib/lime/advice.rb', line 20 def [](type) @table[type.to_sym] end |
#initialize_copy(original) ⇒ Object
15 16 17 |
# File 'lib/lime/advice.rb', line 15 def initialize_copy(original) @table = original.table.clone end |