Class: Decode::Scope
- Inherits:
-
Definition
- Object
- Definition
- Decode::Scope
- Defined in:
- lib/decode/scope.rb
Overview
An abstract namespace for nesting definitions.
Instance Attribute Summary
Attributes inherited from Definition
#The comment lines which directly preceeded the definition., #The language the symbol is defined within., #The path to the definition, relative to the parent., #The source file containing this definition., #comments, #language, #parent, #path, #source, #visibility
Instance Method Summary collapse
-
#container? ⇒ Boolean
Scopes are always containers.
- #short_form ⇒ Object
Methods inherited from Definition
#:public, :private, :protected=, #The parent definition, defining lexical scope.=, #The symbol name e.g. `:Decode`.=, #convert, #coverage_relevant?, #documentation, #documented?, #full_path, #initialize, #inspect, #location, #long_form, #multiline?, #name, #nested?, #nested_name, #public?, #qualified_form, #qualified_name, #start_with?, #text
Constructor Details
This class inherits a constructor from Decode::Definition
Instance Method Details
#container? ⇒ Boolean
Scopes are always containers.
18 19 20 |
# File 'lib/decode/scope.rb', line 18 def container? true end |
#short_form ⇒ Object
12 13 14 |
# File 'lib/decode/scope.rb', line 12 def short_form name.to_s end |