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

15 lines
202 B
Ruby
Raw Normal View History

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