README.md in o-2.0.0 vs README.md in o-2.0.1

- old
+ new

@@ -36,12 +36,12 @@ host "localhost" port 8080 mail.stmp.address "stmp.gmail.com" my.development do # namespace - adapter "mysql2" - database "hello" + adapter "postgresql" + database "hello_development" username "guten" end time proc{|offset| Time.now} # computed attribute end @@ -60,10 +60,29 @@ end c.time = proc{|offset| Time.now} end +a sugar syntax + + # file: guten/rc.rb + development: + adapter "mysql2" + database "hello" + username "guten" + + #=> + + development do + adapter "mysql2" + database "hello" + username "guten" + end + +**WARNNING**: must use \t to indent for this sugar syntax. + + ### initialize ### either way is fine Rc = O.new @@ -199,37 +218,29 @@ O.sleep 10 # call builtin 'sleep' method end a list of blocked methods is in O::BUILTIN_METHODS -### another sugar syntax ### -it likes yaml-style. this way is experiment. used in file syntax only +### some other examples ### - # file: guten/rc.rb - a: - b 1 - c: - d 1 - - #=> - - a do - b 1 - c do - d 1 + O do + name do + first "Guten" + last "Ye" + is "#{first} #{last}" end end -**WARNNING**: must use \t to indent +\# file: a.rb -### some other examples ### - - name do - first "Guten" - last "Ye" - is "#{first} #{last}" + c = self + c.host = "localhost" + c.port = 8080 + c.name do |c| + c.first = "Guten" end + Contributing -------------