]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
added ability to have 'default' entries in json files.
authorelijah <elijah@riseup.net>
Sat, 9 Feb 2013 07:10:08 +0000 (23:10 -0800)
committerelijah <elijah@riseup.net>
Sat, 9 Feb 2013 07:10:08 +0000 (23:10 -0800)
lib/leap_cli/config/object.rb

index 9172fa738eb8b7640777a89837e21c51e4036789..f75bcb9b7be84da2d8f0ccea122da6150c047131 100644 (file)
@@ -70,6 +70,11 @@ module LeapCli
         end
       end
 
+      # override behavior of #default() from Hash
+      def default
+        get!('default')
+      end
+
       #
       # Like a normal Hash#[], except:
       #