Class: Lime::Advice

Inherits:
Object
  • Object
show all
Defined in:
lib/lime/advice.rb

Overview

Test Advice

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAdvice

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

#tableObject (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