summaryrefslogtreecommitdiff
path: root/yarnutils/vars.py
diff options
context:
space:
mode:
Diffstat (limited to 'yarnutils/vars.py')
-rw-r--r--yarnutils/vars.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yarnutils/vars.py b/yarnutils/vars.py
index 9404ffa..c10ed95 100644
--- a/yarnutils/vars.py
+++ b/yarnutils/vars.py
@@ -45,3 +45,6 @@ class Variables(object):
def __setitem__(self, key, value):
self._dict[key] = value
self._save(self._dict)
+
+ def get(self, key, default=None):
+ return self._dict.get(key, default)