diff options
author | elijah <elijah@riseup.net> | 2013-02-08 23:10:08 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-08 23:10:08 -0800 |
commit | ea02733096ae1460df7cf24af3aeec9fc594e4d8 (patch) | |
tree | 84b551917c5748cb24a8e9060dda59add16dc6fa | |
parent | 882a019ce26a045d445c38bdc0f348588a30f465 (diff) | |
download | leap_cli-ea02733096ae1460df7cf24af3aeec9fc594e4d8.tar.gz leap_cli-ea02733096ae1460df7cf24af3aeec9fc594e4d8.tar.bz2 |
added ability to have 'default' entries in json files.
-rw-r--r-- | lib/leap_cli/config/object.rb | 5 |
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: # |