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
#comments, #language, #name, #parent
Instance Method Summary collapse
-
#container? ⇒ Boolean
Scopes are always containers.
- #short_form ⇒ Object
Methods inherited from Definition
#convert, #documentation, #initialize, #inspect, #location, #long_form, #multiline?, #nested?, #nested_name, #path, #path_name, #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 end |