Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
hashery /
[ HOME SHELL ]
Name
Size
Permission
Action
association.rb
4.58
KB
-rw-r--r--
casting_hash.rb
3.27
KB
-rw-r--r--
core_ext.rb
2.57
KB
-rw-r--r--
crud_hash.rb
8.64
KB
-rw-r--r--
dictionary.rb
12.46
KB
-rw-r--r--
fuzzy_hash.rb
3.94
KB
-rw-r--r--
ini_hash.rb
8.08
KB
-rw-r--r--
key_hash.rb
1.47
KB
-rw-r--r--
linked_list.rb
4.47
KB
-rw-r--r--
lru_hash.rb
5.6
KB
-rw-r--r--
open_cascade.rb
3.95
KB
-rw-r--r--
open_hash.rb
3.5
KB
-rw-r--r--
ordered_hash.rb
3.18
KB
-rw-r--r--
path_hash.rb
6.82
KB
-rw-r--r--
property_hash.rb
3.53
KB
-rw-r--r--
query_hash.rb
2.19
KB
-rw-r--r--
stash.rb
203
B
-rw-r--r--
static_hash.rb
1.24
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : query_hash.rb
module Hashery require 'hashery/key_hash' # QueryHash is essentially a Hash class, but with some OpenStruct-like features. # # q = QueryHash.new # # Entries can be added to the Hash via a setter method. # # q.a = 1 # # Then looked up via a query method. # # q.a? #=> 1 # # The can also be looked up via a bang method. # # q.a! #=> 1 # # The difference between query methods and bang methods is that the bang method # will auto-instantiate the entry if not present, where as a query method will not. # # A QueryHash might not be quite as elegant as an OpenHash in that reader # methods must end in `?` or `!`, but it remains fully compatible with Hash # regardless of it's settings. # class QueryHash < CRUDHash # # By default the `key_proc` is set to convert all keys to strings via `#to_s`. # # default - Default object, or # default_proc - Default procedure. # def initialize(*default, &default_proc) @key_proc = Proc.new{ |k| k.to_s } super(*default, &default_proc) end # # Route get and set calls. # # s - [Symbol] Name of method. # a - [Array] Method arguments. # b - [Proc] Block argument. # # Examples # # o = QueryHash.new # o.a = 1 # o.a? #=> 1 # o.b? #=> nil # def method_missing(s,*a, &b) type = s.to_s[-1,1] name = s.to_s.sub(/[!?=]$/, '') key = name #key = cast_key(name) case type when '=' store(key, a.first) when '!' default = (default_proc ? default_proc.call(self, key) : default) key?(key) ? fetch(key) : store(key, default) when '?' key?(key) ? fetch(key) : nil else # return self[key] if key?(key) super(s,*a,&b) end end # # Custom #respond_to to account for #method_missing. # # name - The method name to check. # # Returns `true` or `false`. # def respond_to?(name) return true if name.to_s.end_with?('=') return true if name.to_s.end_with?('?') return true if name.to_s.end_with?('!') #key?(name.to_sym) || super(name) super(name) end end end
Close