module Estreet

Constants

ASSIGNMENT_OPERATORS
BINARY_OPERATORS
LOGICAL_OPERATORS
UNARY_OPERATORS
VERSION

Public Class Methods

assert_valid_operator(acceptable, actual) click to toggle source
# File lib/estreet.rb, line 17
def self.assert_valid_operator(acceptable, actual)
  unless acceptable.include?(actual)
    raise ArgumentError, "Invalid operator: #{operator} (valid operators: #{acceptable.join(' ')})"
  end
end