Sha256: f00a400f6cddbca6ba5daa65155bc38642e82c8d3d12dde4390cb2403c35ced9
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
# DNF Convert any boolean expression to disjunctive normal form (DNF). ## Installation ```ruby gem 'dnf' ``` ## Usage Basic usage: ```ruby expression = "(!a | !b) & c" boolean_expression = Dnf::BooleanExpression.new(expression) boolean_expression.to_dnf # => "!a & c | !b & c" ``` Config: ```ruby Dnf::BooleanExpression.new(expression, { variable_regex: /\w+/, not_symbol: '!', and_symbol: '&', or_symbol: '|' }) ``` ## License The gem is available as open source under the terms of the MIT License.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dnf-0.2.1 | README.md |
dnf-0.2.0 | README.md |