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, #long_form, #multiline?, #nested?, #nested_name, #path, #qualified_form, #qualified_name, #start_with?, #text, #to_s

Constructor Details

This class inherits a constructor from Decode::Definition

Instance Method Details

#container?Boolean

Scopes are always containers.

Returns:

  • (Boolean)


33
34
35
# File 'lib/decode/scope.rb', line 33

def container?
	true
end

#short_formObject



27
28
29
# File 'lib/decode/scope.rb', line 27

def short_form
	@name
end