Sha256: 5f2c2212d7dc61ef6f8c238b15bcf20b5a833ca287848bb817c6b49dc909858e
Contents?: true
Size: 310 Bytes
Versions: 3
Compression:
Stored size: 310 Bytes
Contents
# frozen_string_literal: true module Basic101 class NotOperation include Identity def initialize(expression) @expression = expression end def eval(runtime) @expression.eval(runtime).to_numeric.not end protected def state [@expression] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-1.0.2 | lib/basic101/not_operation.rb |
basic101-1.0.1 | lib/basic101/not_operation.rb |
basic101-1.0.0 | lib/basic101/not_operation.rb |