Class: Rookout::Processor::Namespaces::RubyUtilsNamespace
- Defined in:
- lib/rookout/processor/namespaces/ruby_utils_namespace.rb
Instance Method Summary collapse
Methods inherited from Namespace
Instance Method Details
#call_method(name, args) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/rookout/processor/namespaces/ruby_utils_namespace.rb', line 12 def call_method name, args case name when "exception" RubyObjectNamespace.new $ERROR_INFO when "module" find_module args when "env" raise Exceptions::RookKeyNotFound, args unless ENV.include? args RubyObjectNamespace.new ENV[args] when "thread_id" RubyObjectNamespace.new Thread.current.__id__ when "thread_name" RubyObjectNamespace.new Thread.current.name when "threads" RubyObjectNamespace.new Thread.list when "thread_tracebacks" thread_tracebacks else super end end |
#read_attribute(_name) ⇒ Object
34 35 36 |
# File 'lib/rookout/processor/namespaces/ruby_utils_namespace.rb', line 34 def read_attribute _name RubyObjectNamespace.new nil end |
#read_key(_key) ⇒ Object
38 39 40 |
# File 'lib/rookout/processor/namespaces/ruby_utils_namespace.rb', line 38 def read_key _key RubyObjectNamespace.new nil end |