README.md in tcl-ruby-0.1.0 vs README.md in tcl-ruby-0.1.1

- old
+ new

@@ -1,6 +1,6 @@ -[![Code Climate](https://codeclimate.com/github/kiyonori-matsumoto/tcl-ruby/badges/gpa.svg)](https://codeclimate.com/github/kiyonori-matsumoto/tcl-ruby) [![Build Status](https://travis-ci.org/kiyonori-matsumoto/tcl-ruby.svg?branch=master)](https://travis-ci.org/kiyonori-matsumoto/tcl-ruby) +[![Code Climate](https://codeclimate.com/github/kiyonori-matsumoto/tcl-ruby/badges/gpa.svg)](https://codeclimate.com/github/kiyonori-matsumoto/tcl-ruby) [![Build Status](https://travis-ci.org/kiyonori-matsumoto/tcl-ruby.svg?branch=master)](https://travis-ci.org/kiyonori-matsumoto/tcl-ruby) [![Gem Version](https://badge.fury.io/rb/tcl-ruby.svg)](https://badge.fury.io/rb/tcl-ruby) # Tcl::Ruby Tcl interpreter for ruby @@ -21,22 +21,25 @@ $ gem install tcl-ruby ## Usage Instanciate Interpreter + ```ruby -f = Interpreter.new +f = Tcl::Ruby::Interpreter.new ``` Parse commands you want to + ```ruby f.parse('llength {A B C D}') -=> 4 +# => 4 ``` You can get variables with Interpreter#variables + ```ruby f.parse('set A 123') f.variables('A') -=> '123' +# => '123' ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.