Module: Kernel
- Defined in:
- lib/builtinME.rb
Instance Method Summary collapse
- #=~(x) ⇒ Object
- #fork ⇒ Object
-
#load(file_name) ⇒ Object
private.
- #nil? ⇒ Boolean
-
#require(file_name) ⇒ Object
private.
- #singleton_method_added(symbol) ⇒ Object
- #singleton_method_removed(symbol) ⇒ Object
- #singleton_method_undefined(symbol) ⇒ Object
Instance Method Details
#=~(x) ⇒ Object
23 24 25 |
# File 'lib/builtinME.rb', line 23 def =~ x false end |
#fork ⇒ Object
19 20 21 |
# File 'lib/builtinME.rb', line 19 def fork raise NotImplementedError, "the fork() function is unimplemented on this machine" end |
#load(file_name) ⇒ Object
private
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/builtinME.rb', line 44 def load(file_name) if __load_with_reflection__(file_name) return true end # $:.each do |path| # return true if load_rb_file(path, file_name) # end raise LoadError, "no such file to load -- " + file_name end |
#nil? ⇒ Boolean
15 16 17 |
# File 'lib/builtinME.rb', line 15 def nil? false end |
#require(file_name) ⇒ Object
private
37 38 39 40 41 |
# File 'lib/builtinME.rb', line 37 def require(file_name) return false if ($".include?(file_name) || $".include?(file_name + ".rb")) load(file_name); end |
#singleton_method_added(symbol) ⇒ Object
27 28 |
# File 'lib/builtinME.rb', line 27 def singleton_method_added symbol end |
#singleton_method_removed(symbol) ⇒ Object
30 31 |
# File 'lib/builtinME.rb', line 30 def singleton_method_removed symbol end |
#singleton_method_undefined(symbol) ⇒ Object
33 34 |
# File 'lib/builtinME.rb', line 33 def singleton_method_undefined symbol end |