Class: HelloCrush::Say
- Inherits:
-
Object
- Object
- HelloCrush::Say
- Defined in:
- lib/hello_crush/say.rb
Instance Method Summary collapse
- #greet ⇒ Object
-
#initialize(name) ⇒ Say
constructor
A new instance of Say.
Constructor Details
#initialize(name) ⇒ Say
Returns a new instance of Say.
3 4 5 |
# File 'lib/hello_crush/say.rb', line 3 def initialize(name) @name = name end |
Instance Method Details
#greet ⇒ Object
7 8 9 |
# File 'lib/hello_crush/say.rb', line 7 def greet "#{@name}, #{random_message}" end |