Class: Named::Module
- Inherits:
-
Module
- Object
- Module
- Named::Module
- Includes:
- Inspection, Naming
- Defined in:
- lib/named/module.rb
Instance Attribute Summary
Attributes included from Naming
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ Module
constructor
A new instance of Module.
- #to_s ⇒ Object
Methods included from Inspection
Constructor Details
#initialize(name, &block) ⇒ Module
Returns a new instance of Module.
5 6 7 8 |
# File 'lib/named/module.rb', line 5 def initialize(name, &block) super(&block) self.name = name end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/named/module.rb', line 11 def to_s [self.class.name, name, inspect_object_id].join(':') end |