Class: Boolean::Expression::Name
- Inherits:
-
String
- Object
- String
- Boolean::Expression::Name
- Defined in:
- lib/boolean/expression/name.rb
Overview
– Copyleft meh. [meh.paranoid.pk | [email protected]]
This file is part of boolean-expression.
boolean-expression is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
boolean-expression is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with boolean-expression. If not, see <www.gnu.org/licenses/>. ++
Instance Method Summary collapse
- #inspect ⇒ Object (also: #to_s)
Instance Method Details
#inspect ⇒ Object Also known as: to_s
21 22 23 |
# File 'lib/boolean/expression/name.rb', line 21 def inspect (match(/[\s!&|]/) || %w(and or not).include?(downcase)) ? super : self end |