Sha256: b51ab709baff785a82e28253eade241e8d007ca465ea9f7ea385970f745c5cd0

Contents?: true

Size: 267 Bytes

Versions: 3

Compression:

Stored size: 267 Bytes

Contents

HackTree.define do
  desc <<-EOT
    Say hello to the world or to a specific person

    Examples:

      >> c.hello
      Hello, world!

      >> c.hello "Ruby"
      Hello, Ruby!
  EOT
  hack :hello do |*args|
    puts "Hello, %s!" % (args[0] || "world")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hack_tree-0.1.2 lib/generators/hack_tree/templates/hello.rb
hack_tree-0.1.1 lib/generators/hack_tree/templates/hello.rb
hack_tree-0.1.0 lib/generators/hack_tree/templates/hello.rb