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

- old
+ new

@@ -5,10 +5,12 @@ **Author**: Guten <br/> **License**: MIT-LICENSE <br/> **Documentation**: [http://rubydoc.info/gems/o/frames](http://rubydoc.info/gems/o/frames) <br/> **Issue Tracker**: [https://github.com/GutenYe/o/issues](https://github.com/GutenYe/o/issues) <br/> +then name `o` comes from option/setting, short and handy, eh-ah~ + Features -------- * support variable, computed attribute * DSL syntax in pure ruby @@ -20,15 +22,15 @@ do configuration at three levels: system, user, cmdline lib/guten/rc.rb # system level ~/.gutenrc # user level - $ guten --list # cmdline level + $ guten --list or ENV[GEMFILE]=x guten # cmdline level module Guten Rc = O.require("guten/rc") + O.require("~/.gutenrc") - Rc.list = true + Rc.list = true or Rc.gemfile = ENV[GEMFILE] # from cmdline. end ### a completed example ### @@ -60,11 +62,11 @@ end c.time = proc{|offset| Time.now} end -a sugar syntax +a sugar syntax. _works in a file only_ # file: guten/rc.rb development: adapter "mysql2" database "hello" @@ -76,13 +78,14 @@ adapter "mysql2" database "hello" username "guten" end +this is not pure ruby syntax, but it works. + **WARNNING**: must use \t to indent for this sugar syntax. - ### initialize ### either way is fine Rc = O.new @@ -134,12 +137,12 @@ my do age 2 friend do age 3 p age #=> 3 - p __.age #=> 2 relative - p ___.age #=> 1 - p _.age #=> 1 root + p __.age #=> 2 __ is relative up to 1 times + p ___.age #=> 1 ___ and so on is relative up to 2 and so on times + p _.age #=> 1 _ is root end end end ### namespace ###