Module: Rubyzen::Providers::SourceCodeProvider
- Included in:
- Declarations::BlockDeclaration, Declarations::CallSiteDeclaration, Declarations::ConstantDeclaration, Declarations::IfStatementDeclaration, Declarations::MacroDeclaration, Declarations::RaiseDeclaration
- Defined in:
- lib/rubyzen/providers/source_code_provider.rb
Overview
Provides access to the raw source code text of a declaration.
Instance Method Summary collapse
-
#source_code ⇒ String
The source code of this declaration.
Instance Method Details
#source_code ⇒ String
Returns the source code of this declaration.
6 7 8 |
# File 'lib/rubyzen/providers/source_code_provider.rb', line 6 def source_code node.loc.expression.source end |