Class: Decode::Scope

Inherits:
Definition show all
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

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.

Returns:

  • (Boolean)


18
19
20
# File 'lib/decode/scope.rb', line 18

def container?
	true
end

#short_formObject



12
13
14
# File 'lib/decode/scope.rb', line 12

def short_form
	@name
end