Sha256: 5feb93c229c6813a961aced18379c1e5eb7bebdcbf723465a576f2fceb951956
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
require "thor/core_ext/hash_with_indifferent_access" module Carrasco class Command attr_reader :command_name, :command, :description, :help def initialize(command_name, options = {}) options = Thor::CoreExt::HashWithIndifferentAccess.new(options) @command_name = command_name @command = options[:command] @help = options[:help] || command_name @description = options[:description] || "description not given" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
carrasco-0.1.4 | lib/carrasco/command.rb |