Class: Decode::Language::Generic
- Inherits:
-
Object
- Object
- Decode::Language::Generic
- Defined in:
- lib/decode/language/generic.rb
Overview
The Ruby language.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#definitions_for(input, &block) ⇒ Object
Parse the input yielding definitions.
-
#initialize(name) ⇒ Generic
constructor
A new instance of Generic.
-
#reference_for(identifier) ⇒ Object
Generate a generic reference.
-
#segments_for(input, &block) ⇒ Object
Parse the input yielding interleaved comments and code segments.
Constructor Details
#initialize(name) ⇒ Generic
Returns a new instance of Generic.
27 28 29 |
# File 'lib/decode/language/generic.rb', line 27 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
31 32 33 |
# File 'lib/decode/language/generic.rb', line 31 def name @name end |
Instance Method Details
#definitions_for(input, &block) ⇒ Object
Parse the input yielding definitions.
41 42 |
# File 'lib/decode/language/generic.rb', line 41 def definitions_for(input, &block) end |
#reference_for(identifier) ⇒ Object
Generate a generic reference.
34 35 36 |
# File 'lib/decode/language/generic.rb', line 34 def reference_for(identifier) Reference.new(identifier, self) end |
#segments_for(input, &block) ⇒ Object
Parse the input yielding interleaved comments and code segments.
47 48 |
# File 'lib/decode/language/generic.rb', line 47 def segments_for(input, &block) end |