Top Level Namespace
Defined Under Namespace
Modules: Comparable, Enumerable, GC, Integral, Kernel, Math, ObjectSpace
Classes: Addrinfo, ArgumentError, Array, BasicSocket, EOFError, Enumerator, Exception, FalseClass, Fiber, File, FileTest, Fixnum, Float, FloatDomainError, FrozenError, Hash, IO, IOError, IPSocket, IndexError, Integer, KeyError, LocalJumpError, Method, Module, NameError, NilClass, NoMemoryError, NoMethodError, NotImplementedError, Numeric, Object, Proc, Random, Range, RangeError, RegexpError, ScriptError, Socket, SocketError, StandardError, StopIteration, String, Struct, Symbol, SystemStackError, TCPServer, TCPSocket, Time, TrueClass, TypeError, UDPSocket, UNIXServer, UNIXSocket, UnboundMethod
Constant Summary
- STDIN =
IO.open(0, "r")
- STDOUT =
IO.open(1, "w")
- STDERR =
IO.open(2, "w")
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.include(*modules) ⇒ Object
2
3
4
|
# File 'mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb', line 2
def self.include (*modules)
self.class.include(*modules)
end
|
.private(*methods) ⇒ Object
6
7
|
# File 'mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb', line 6
def self.private(*methods)
end
|
.protected(*methods) ⇒ Object
8
9
|
# File 'mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb', line 8
def self.protected(*methods)
end
|
.public(*methods) ⇒ Object
10
11
|
# File 'mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb', line 10
def self.public(*methods)
end
|
Instance Method Details
#dig(idx, *args) ⇒ Object
call-seq:
hsh.dig(key,…) -> object
Extracts the nested value specified by the sequence of key
objects by calling +dig+ at each step, returning +nil+ if any
intermediate step is +nil+.
94
95
96
97
98
99
100
101
|
# File 'mrbgems/mruby-struct/mrblib/struct.rb', line 94
def dig(idx,*args)
n = self[idx]
if args.size > 0
n&.dig(*args)
else
n
end
end
|