Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.325 kB
require 'active_support/inflector'
class Default < Thor
include Thor::Actions
attr_reader :name
source_root File.expand_path("../templates", __FILE__)
desc "new NAME", "Create a new scroll"
def new(name)
@name = name
template "new_scroll.tt", "scrolls/#{name}.rb"
`open scrolls/#{name}.rb`
end
end
Jump to Line
Something went wrong with that request. Please try again.