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
-
#language ⇒ Object
Returns the value of attribute language.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#language ⇒ Object
Returns the value of attribute language.
115 116 117 |
# File 'lib/codemodels/source_info.rb', line 115 def language @language end |
#source ⇒ Object
Returns the value of attribute source.
116 117 118 |
# File 'lib/codemodels/source_info.rb', line 116 def source @source end |
Instance Method Details
#set_end_point(data) ⇒ Object
123 124 125 126 |
# File 'lib/codemodels/source_info.rb', line 123 def set_end_point(data) @source = SourceInfo.new unless @source @source.set_end_point(data) end |
#set_start_point(data) ⇒ Object
118 119 120 121 |
# File 'lib/codemodels/source_info.rb', line 118 def set_start_point(data) @source = SourceInfo.new unless @source @source.set_start_point(data) end |