Skip to content

Interactive console

zverok edited this page Apr 9, 2016 · 1 revision

For hop on the train of Reality as fast as you've installed the gem, you can use our Command-line tool or interactive console:

$ reality -i
reality#1:001:0> E('Iceland').population
# => #<Reality::Measure(317,351 person)>

All shortcuts and formatters are included into console for minimum typing, and all external services are configured with :demo key, so you can just use them:

reality#1:002:0> E('Iceland').capital.coord.weather
# => #<Reality::Weather(5°C, Clouds)>