Sha256: b24f071a3f015eb5c0fd952c8cab48ce72c736d9b8cd06d676606b9136036190
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
# MagicLogic [![Gem Version](https://badge.fury.io/rb/magic_logic.svg)](http://badge.fury.io/rb/magic_logic) [![Build Status](https://travis-ci.org/gogotanaka/MagicLogic.svg?branch=master)](https://travis-ci.org/gogotanaka/MagicLogic) ```rb p = P["It's sunny."] q = P["It's raining."] r = P["It's cloudy."] ~(~p) >= p # =>TRUE (p * (p >= q)) >= q # =>TRUE ((p >= q) * (q >= r)) >= (p >= r) # =>TRUE (~p * (p + q)) >= (q) # =>TRUE ((p >= q) * (q >= r) * p) >= (r) # =>TRUE (p * ~p) >= r # =>TRUE ``` ## Installation Add this line to your application's Gemfile: ```ruby gem 'magic_logic' ``` And then execute: $ bundle Or install it yourself as: $ gem install magic_logic ## Usage TODO: Write usage instructions here ## Contributing 1. Fork it ( https://github.com/[my-github-username]/magic_logic/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magic_logic-0.0.3 | README.md |
magic_logic-0.0.2 | README.md |