GRAYBYTE WORDPRESS FILE MANAGER4637

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
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/ruby24/lib64/ruby/2.4.0/irb/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby24/lib64/ruby/2.4.0/irb//magic-file.rb
# frozen_string_literal: false
module IRB
  class << (MagicFile = Object.new)
    # see parser_magic_comment in parse.y
    ENCODING_SPEC_RE = %r"coding\s*[=:]\s*([[:alnum:]\-_]+)"

    def open(path)
      io = File.open(path, 'rb')
      line = io.gets
      line = io.gets if line[0,2] == "#!"
      encoding = detect_encoding(line)
      internal_encoding = encoding
      encoding ||= default_src_encoding
      io.rewind
      io.set_encoding(encoding, internal_encoding)

      if block_given?
        begin
          return (yield io)
        ensure
          io.close
        end
      else
        return io
      end
    end

    private
    def detect_encoding(line)
      return unless line[0] == ?#
      line = line[1..-1]
      line = $1 if line[/-\*-\s*(.*?)\s*-*-$/]
      return nil unless ENCODING_SPEC_RE =~ line
      encoding = $1
      return encoding.sub(/-(?:mac|dos|unix)/i, '')
    end
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:48:02
root / root
0755
cmd
--
March 03 2024 22:47:57
root / linksafe
0755
ext
--
March 03 2024 22:47:57
root / linksafe
0755
lc
--
March 03 2024 22:47:57
root / linksafe
0755
completion.rb
6.485 KB
March 31 2020 11:42:18
root / linksafe
0644
context.rb
12.43 KB
March 31 2020 11:42:18
root / linksafe
0644
extend-command.rb
9.716 KB
March 31 2020 11:42:18
root / linksafe
0644
frame.rb
1.915 KB
March 31 2020 11:42:18
root / linksafe
0644
help.rb
0.688 KB
March 31 2020 11:42:18
root / linksafe
0644
init.rb
7.671 KB
March 31 2020 11:42:18
root / linksafe
0644
input-method.rb
4.634 KB
March 31 2020 11:42:18
root / linksafe
0644
inspector.rb
3.607 KB
March 31 2020 11:42:18
root / linksafe
0644
locale.rb
4.621 KB
March 31 2020 11:42:18
root / linksafe
0644
magic-file.rb
0.902 KB
March 31 2020 11:42:18
root / linksafe
0644
notifier.rb
7.184 KB
March 31 2020 11:42:18
root / linksafe
0644
output-method.rb
2.444 KB
March 31 2020 11:42:18
root / linksafe
0644
ruby-lex.rb
24.047 KB
March 31 2020 11:42:18
root / linksafe
0644
ruby-token.rb
7.37 KB
March 31 2020 11:42:18
root / linksafe
0644
slex.rb
6.832 KB
March 31 2020 11:42:18
root / linksafe
0644
src_encoding.rb
0.118 KB
March 31 2020 11:42:18
root / linksafe
0644
version.rb
0.275 KB
March 31 2020 11:42:18
root / linksafe
0644
workspace.rb
3.273 KB
March 31 2020 11:42:18
root / linksafe
0644
ws-for-case-2.rb
0.221 KB
March 31 2020 11:42:18
root / linksafe
0644
xmp.rb
4.017 KB
March 31 2020 11:42:18
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF