Class: Amelia::ViewHelpers::ActionView::Greet

Inherits:
Object
  • Object
show all
Defined in:
lib/amelia/view_helpers/action_view.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Greet

Returns a new instance of Greet.



9
10
11
# File 'lib/amelia/view_helpers/action_view.rb', line 9

def initialize name
  @hello = "Hi #{name} !"
end

Instance Method Details

#messageObject



13
14
15
# File 'lib/amelia/view_helpers/action_view.rb', line 13

def message
 @hello
end