17 lines
186 B
Ruby
17 lines
186 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
class Test
|
|
def initialize(fruit)
|
|
@fruit = fruit
|
|
end
|
|
|
|
def hello
|
|
name = "Bob"
|
|
puts "Hello #{name} !"
|
|
end
|
|
|
|
def eat
|
|
puts "#{@fruit}"
|
|
end
|
|
end
|