README.md in console_runner-0.1.32 vs README.md in console_runner-0.1.34
- old
+ new
@@ -5,10 +5,11 @@
[![Code Climate][CC img]][Code Climate]
[![Coverage Status][CS img]][Coverage Status]
This gem provides you an ability to run any Ruby method from command-line. No special code modifications required!.
`console_runner` is a smart mix of [YARD](http://yardoc.org/) and [Trollop](http://manageiq.github.io/trollop/) gems.
+It's an analog of [Python Fire](https://github.com/google/python-fire) in Ruby language.
> 1. it parses [YARD](http://yardoc.org/) annotations of classes and methods to 'understand' your code
> 2. it generates friendly unix-like help menu for your tool (using [Trollop](http://manageiq.github.io/trollop/) gem)
> 3. it parses command-line input and run your Ruby code in a proper way
Just 4 simple steps to make your code runnable from terminal:
@@ -202,13 +203,13 @@
```bash
-> c_run /projects/example/my_class.rb say_hello
Hello, Chuck.
```
#### **Is it works only for class methods?**
-`console_runner` works with both methods - class and instance methods. It's clear how it works with class method - method is called without any preconditions.
-Class method will be called in accordance with following logic:
+`console_runner` works with both methods - **class** and **instance** methods. It's clear how it works with **class** method - method is called without any preconditions.
+**Instance** method will be called in accordance with following logic:
1. call `:initialize` method
- 2. cal action method
+ 2. call specified action method
#### **My `require` code doesn't work well. How can I fix it?**
Use `require_relative ` method instead.
## Development
\ No newline at end of file