PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Module
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Defines a named attribute for this module, where the name is <em>symbol.</em><tt>id2name</tt>, creating an instance variable (<tt>@name</tt>) and a corresponding access method to read it. If the optional <em>writable</em> argument is <tt>true</tt>, also creates a method called <tt>name=</tt> to set the attribute. - !ruby/struct:SM::Flow::VERB body: " module Mod\n attr :size, true\n end\n" - !ruby/struct:SM::Flow::P body: <em>is equivalent to:</em> - !ruby/struct:SM::Flow::VERB body: " module Mod\n def size\n @size\n end\n def size=(val)\n @size = val\n end\n end\n" full_name: Module#attr is_singleton: false name: attr params: | attr(symbol, writable=false) => nil 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]