Class: ShEx::Algebra::Operator::Binary Abstract
- Inherits:
-
ShEx::Algebra::Operator
- Object
- ShEx::Algebra::Operator
- ShEx::Algebra::Operator::Binary
- Defined in:
- lib/shex/algebra/operator.rb
Overview
This class is abstract.
A binary operator.
Operators of this kind take two operands.
Constant Summary collapse
- ARITY =
2
Instance Attribute Summary
Attributes inherited from ShEx::Algebra::Operator
Instance Method Summary collapse
-
#initialize(arg1, arg2, options = {}) ⇒ Binary
constructor
A new instance of Binary.
Methods inherited from ShEx::Algebra::Operator
#closed?, #each_descendant, #eql?, #first_ancestor, #inspect, #not_matched, #not_satisfied, #operand, #parent, #parent=, #satisfiable?, #semact?, #semantic_actions, #status, #structure_error, #to_sxp, #to_sxp_bin, #triple_expression?, #validate!
Constructor Details
#initialize(arg1, arg2, options = {}) ⇒ Binary
Returns a new instance of Binary.
268 269 270 271 |
# File 'lib/shex/algebra/operator.rb', line 268 def initialize(arg1, arg2, = {}) raise ArgumentError, "wrong number of arguments (given 3, expected 2)" unless .is_a?(Hash) super end |