PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Module
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Creates module functions for the named methods. These functions may be called with the module as a receiver, and also become available as instance methods to classes that mix in the module. Module functions are copies of the original, and so may be changed independently. The instance-method versions are made private. If used with no arguments, subsequently defined methods become module functions. - !ruby/struct:SM::Flow::VERB body: " module Mod\n def one\n "This is one"\n end\n module_function :one\n end\n class Cls\n include Mod\n def callOne\n one\n end\n end\n Mod.one #=> "This is one"\n c = Cls.new\n c.callOne #=> "This is one"\n module Mod\n def one\n "This is the new one"\n end\n end\n Mod.one #=> "This is one"\n c.callOne #=> "This is the new one"\n" full_name: Module#module_function is_singleton: false name: module_function params: | module_function(symbol, ...) => self visibility: public
[-] method_removed-i.yaml
[edit]
[-] class_variable_defined%3f-i.yaml
[edit]
[-] %3c%3d%3e-i.yaml
[edit]
[-] undef_method-i.yaml
[edit]
[-] autoload-i.yaml
[edit]
[-] included-i.yaml
[edit]
[-] instance_methods-i.yaml
[edit]
[-] private_class_method-i.yaml
[edit]
[-] attr_accessor-i.yaml
[edit]
[-] private_instance_methods-i.yaml
[edit]
[-] autoload%3f-i.yaml
[edit]
[-] define_method-i.yaml
[edit]
[-] constants-i.yaml
[edit]
[-] protected-i.yaml
[edit]
[-] class_variables-i.yaml
[edit]
[-] class_eval-i.yaml
[edit]
[-] protected_instance_methods-i.yaml
[edit]
[-] include-i.yaml
[edit]
[-] name-i.yaml
[edit]
[-] method_added-i.yaml
[edit]
[-] module_eval-i.yaml
[edit]
[-] ancestors-i.yaml
[edit]
[-] method_undefined-i.yaml
[edit]
[-] const_set-i.yaml
[edit]
[-] const_missing-i.yaml
[edit]
[-] method_defined%3f-i.yaml
[edit]
[-] class_exec-i.yaml
[edit]
[-] %3d%3d%3d-i.yaml
[edit]
[-] attr-i.yaml
[edit]
[-] %3c-i.yaml
[edit]
[-] attr_reader-i.yaml
[edit]
[-] extend_object-i.yaml
[edit]
[-] alias_method-i.yaml
[edit]
[-] class_variable_set-i.yaml
[edit]
[-] private-i.yaml
[edit]
[-] include%3f-i.yaml
[edit]
[-] module_function-i.yaml
[edit]
[-] public-i.yaml
[edit]
[-] %3e-i.yaml
[edit]
[-] const_get-i.yaml
[edit]
[-] private_method_defined%3f-i.yaml
[edit]
[-] attr_writer-i.yaml
[edit]
[-] cdesc-Module.yaml
[edit]
[-] %3c%3d-i.yaml
[edit]
[-] public_class_method-i.yaml
[edit]
[-] append_features-i.yaml
[edit]
[-] %3d%3d-i.yaml
[edit]
[-] constants-c.yaml
[edit]
[-] extended-i.yaml
[edit]
[-] protected_method_defined%3f-i.yaml
[edit]
[+]
..
[-] remove_class_variable-i.yaml
[edit]
[-] module_exec-i.yaml
[edit]
[-] public_instance_methods-i.yaml
[edit]
[-] included_modules-i.yaml
[edit]
[-] %3e%3d-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] instance_method-i.yaml
[edit]
[-] remove_const-i.yaml
[edit]
[-] class_variable_get-i.yaml
[edit]
[-] remove_method-i.yaml
[edit]
[-] const_defined%3f-i.yaml
[edit]
[-] nesting-c.yaml
[edit]
[-] public_method_defined%3f-i.yaml
[edit]
[-] freeze-i.yaml
[edit]
[-] to_s-i.yaml
[edit]