Class: ME::Me
- Inherits:
-
Object
- Object
- ME::Me
- Defined in:
- lib/needabot.rb
Instance Attribute Summary collapse
-
#can ⇒ Object
Returns the value of attribute can.
Instance Method Summary collapse
- #[](k) ⇒ Object
-
#initialize(k) ⇒ Me
constructor
A new instance of Me.
Constructor Details
#initialize(k) ⇒ Me
Returns a new instance of Me.
118 119 120 121 |
# File 'lib/needabot.rb', line 118 def initialize k @id = k @can = Hash.new { |h,kk| h[kk] = lambda { |*a| puts %[==< #{kk} >< #{k} >\n#{a}] } } end |
Instance Attribute Details
#can ⇒ Object
Returns the value of attribute can.
117 118 119 |
# File 'lib/needabot.rb', line 117 def can @can end |