Sha256: 99fc0b52e9770a572e0f27f19bdd85587f22519dbbaefa1bddc4b56ec6192530

Contents?: true

Size: 243 Bytes

Versions: 12

Compression:

Stored size: 243 Bytes

Contents

module Earthquake
  module Help
    def helps
      @helps ||= {}
    end

    def help(name, summary, usage = nil)
      helps[name] = summary, usage ? usage.trim_indent : nil
    end
  end

  init do
    helps.clear
  end

  extend Help
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
earthquake-1.0.2 lib/earthquake/help.rb
earthquake-1.0.1 lib/earthquake/help.rb
earthquake-1.0.0 lib/earthquake/help.rb
earthquake-0.9.4 lib/earthquake/help.rb
earthquake-0.9.3 lib/earthquake/help.rb
earthquake-0.9.2 lib/earthquake/help.rb
earthquake-0.9.1 lib/earthquake/help.rb
earthquake-0.9.0 lib/earthquake/help.rb
earthquake-0.8.5 lib/earthquake/help.rb
earthquake-0.8.4 lib/earthquake/help.rb
earthquake-0.8.3 lib/earthquake/help.rb
earthquake-0.8.2 lib/earthquake/help.rb