lib/cogy.rb in cogy-0.0.2 vs lib/cogy.rb in cogy-0.0.3

- old
+ new

@@ -8,12 +8,12 @@ # Holds all the registered Commands. Not to be messed with. mattr_accessor :commands @@commands = {} # Bundle config-related stuff - mattr_accessor :bundle_name - @@bundle_name = "cogy" + mattr_accessor :bundle_name + @@bundle_name = "cogy" mattr_accessor :bundle_description @@bundle_description = "Cogy-generated commands" # Can be either a string or an object that responds to `#call` and returns @@ -72,11 +72,11 @@ if cmd.long_desc config["commands"][name]["long_description"] = cmd.long_desc end - if cmd.example - config["commands"][name]["example"] = cmd.example + if cmd.examples + config["commands"][name]["examples"] = cmd.examples end end config end