Class: Decode::Language::Generic

Inherits:
Object
  • Object
show all
Defined in:
lib/decode/language/generic.rb

Overview

The Ruby language.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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