Sha256: 0f49ae42834377f144237aa8ced6853e530771e3f9573ad0a393031188e402eb

Contents?: true

Size: 376 Bytes

Versions: 170

Compression:

Stored size: 376 Bytes

Contents

require 'puppet'
require 'puppet/parser/ast/branch'

# An object that returns a boolean which is the boolean not
# of the given value.
class Puppet::Parser::AST
  class Not < AST::Branch
    attr_accessor :value

    def each
      yield @value
    end

    def evaluate(scope)
      val = @value.safeevaluate(scope)
      ! Puppet::Parser::Scope.true?(val)
    end
  end
end

Version data entries

170 entries across 170 versions & 5 rubygems

Version Path
puppet-retrospec-0.12.2 vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb
puppet-3.8.7 lib/puppet/parser/ast/not.rb
puppet-3.8.7-x86-mingw32 lib/puppet/parser/ast/not.rb
puppet-3.8.7-x64-mingw32 lib/puppet/parser/ast/not.rb
puppet-3.8.6 lib/puppet/parser/ast/not.rb
puppet-3.8.6-x86-mingw32 lib/puppet/parser/ast/not.rb
puppet-retrospec-0.12.1 vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb
puppet-3.8.6-x64-mingw32 lib/puppet/parser/ast/not.rb
puppet-retrospec-0.12.0 vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb
puppet-3.8.5 lib/puppet/parser/ast/not.rb
puppet-3.8.5-x86-mingw32 lib/puppet/parser/ast/not.rb
puppet-3.8.5-x64-mingw32 lib/puppet/parser/ast/not.rb
puppet-3.8.4 lib/puppet/parser/ast/not.rb
puppet-3.8.4-x86-mingw32 lib/puppet/parser/ast/not.rb
puppet-3.8.4-x64-mingw32 lib/puppet/parser/ast/not.rb
puppet-retrospec-0.11.0 vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb
puppet-retrospec-0.10.0 vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb
puppet-retrospec-0.9.1 vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb
puppet-retrospec-0.9.0 vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb
puppet-retrospec-0.8.1 vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb