Class: Decode::Language::Ruby::Module
- Inherits:
-
Definition
- Object
- Symbol
- Definition
- Decode::Language::Ruby::Module
- Defined in:
- lib/decode/language/ruby/module.rb
Overview
A Ruby-specific module.
Instance Attribute Summary
Attributes inherited from Definition
Attributes inherited from Symbol
#kind, #language, #name, #parent
Instance Method Summary collapse
-
#container? ⇒ Boolean
A module is a container for other definitions.
-
#short_form ⇒ Object
(also: #long_form)
The short form of the module.
Methods inherited from Definition
#documentation, #initialize, #multiline?, #nested?, #qualified_form, #text
Methods inherited from Symbol
#initialize, #inspect, #key, #lexical_path, #path, #qualified_name
Constructor Details
This class inherits a constructor from Decode::Definition
Instance Method Details
#container? ⇒ Boolean
A module is a container for other definitions.
29 30 31 |
# File 'lib/decode/language/ruby/module.rb', line 29 def container? true end |
#short_form ⇒ Object Also known as: long_form
The short form of the module. e.g. ‘module Barnyard`.
35 36 37 |
# File 'lib/decode/language/ruby/module.rb', line 35 def short_form "module #{@name}" end |