Class: Decode::Language::Ruby::Generic
- Defined in:
- lib/decode/language/ruby/generic.rb
Overview
The Ruby language.
Constant Summary collapse
- EXTENSIONS =
['.rb', '.ru']
Constants inherited from Generic
Instance Attribute Summary
Attributes inherited from Generic
Instance Method Summary collapse
- #code_for(text, index, relative_to: nil) ⇒ Object
- #parser ⇒ Object
-
#reference_for(identifier) ⇒ Object
Generate a language-specific reference.
Methods inherited from Generic
#definitions_for, #initialize, #names, #segments_for
Constructor Details
This class inherits a constructor from Decode::Language::Generic
Instance Method Details
#code_for(text, index, relative_to: nil) ⇒ Object
27 28 29 |
# File 'lib/decode/language/ruby/generic.rb', line 27 def code_for(text, index, relative_to: nil) Code.new(text, index, relative_to: relative_to, language: self) end |