Explorar el Código

Create Env class

master
Dylan Baker hace 5 años
padre
commit
7d4ebdb9eb
Se han modificado 1 ficheros con 15 adiciones y 0 borrados
  1. 15
    0
      lib/chervil/env.rb

+ 15
- 0
lib/chervil/env.rb Ver fichero

@@ -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…
Cancelar
Guardar