dotfiles/fake_home/.vim/templates/skeleton.rb

17 lines
217 B
Ruby
Executable File

#!/usr/bin/env ruby
# skeleton.rb
class Person
def initialize(name)
@name = name
end
def greet
puts "Hello, my name is #{@name}!"
end
end
friend = Person.new("Andrea")
friend.greet