class SomeCoolGem::HelloWorld::Alloha
Attributes
name[RW]
Public Class Methods
new(name)
click to toggle source
# File lib/SomeCoolGem/hello_world/alloha.rb, line 7 def initialize(name) @name = name end
Public Instance Methods
generate_alloha()
click to toggle source
# File lib/SomeCoolGem/hello_world/alloha.rb, line 11 def generate_alloha "Alloha, #{@name}, from SomeCoolGem!" end
say_alloha()
click to toggle source
# File lib/SomeCoolGem/hello_world/alloha.rb, line 15 def say_alloha puts generate_alloha end