Class: Lemurick::LemurMic
- Inherits:
-
Object
- Object
- Lemurick::LemurMic
- Defined in:
- lib/lemurick/lemurick.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(name) ⇒ LemurMic
constructor
A new instance of LemurMic.
Constructor Details
#initialize(name) ⇒ LemurMic
Returns a new instance of LemurMic.
3 4 5 |
# File 'lib/lemurick/lemurick.rb', line 3 def initialize(name) @person = eval(name.capitalize) end |
Instance Method Details
#call ⇒ Object
7 8 9 |
# File 'lib/lemurick/lemurick.rb', line 7 def call @person.new.speak end |