Browse Source

Create Env class

master
Dylan Baker 5 years ago
parent
commit
7d4ebdb9eb
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      lib/chervil/env.rb

+ 15
- 0
lib/chervil/env.rb View File

@@ -0,0 +1,15 @@
1
+module Chervil
2
+  class Env
3
+    def initialize(parent = {})
4
+      @data = parent
5
+    end
6
+
7
+    def get(name)
8
+      @data[name]
9
+    end
10
+
11
+    def set(name, value)
12
+      @data[name] = value
13
+    end
14
+  end
15
+end

Loading…
Cancel
Save