aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/config
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-02-08 23:10:08 -0800
committerelijah <elijah@riseup.net>2013-02-08 23:10:08 -0800
commitea02733096ae1460df7cf24af3aeec9fc594e4d8 (patch)
tree84b551917c5748cb24a8e9060dda59add16dc6fa /lib/leap_cli/config
parent882a019ce26a045d445c38bdc0f348588a30f465 (diff)
downloadleap_cli-ea02733096ae1460df7cf24af3aeec9fc594e4d8.tar.gz
leap_cli-ea02733096ae1460df7cf24af3aeec9fc594e4d8.tar.bz2
added ability to have 'default' entries in json files.
Diffstat (limited to 'lib/leap_cli/config')
-rw-r--r--lib/leap_cli/config/object.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb
index 9172fa7..f75bcb9 100644
--- a/lib/leap_cli/config/object.rb
+++ b/lib/leap_cli/config/object.rb
@@ -70,6 +70,11 @@ module LeapCli
end
end
+ # override behavior of #default() from Hash
+ def default
+ get!('default')
+ end
+
#
# Like a normal Hash#[], except:
#