Module: CodeModels::SourceInfoExtensions

Included in:
CodeModelsAstNode
Defined in:
lib/codemodels/source_info.rb

Overview

This extension give all the information about the source  from which the node was derived

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#languageObject

Returns the value of attribute language.



149
150
151
# File 'lib/codemodels/source_info.rb', line 149

def language
  @language
end

#sourceObject

Returns the value of attribute source.



150
151
152
# File 'lib/codemodels/source_info.rb', line 150

def source
  @source
end

Instance Method Details

#set_end_point(data) ⇒ Object



157
158
159
160
# File 'lib/codemodels/source_info.rb', line 157

def set_end_point(data)
	@source = SourceInfo.new unless @source
	@source.set_end_point(data)		
end

#set_start_point(data) ⇒ Object



152
153
154
155
# File 'lib/codemodels/source_info.rb', line 152

def set_start_point(data)
	@source = SourceInfo.new unless @source
	@source.set_start_point(data)
end