Module: Decode::Language::Ruby
- Defined in:
- lib/decode/language/ruby.rb,
lib/decode/language/ruby/call.rb,
lib/decode/language/ruby/block.rb,
lib/decode/language/ruby/class.rb,
lib/decode/language/ruby/method.rb,
lib/decode/language/ruby/module.rb,
lib/decode/language/ruby/parser.rb,
lib/decode/language/ruby/segment.rb,
lib/decode/language/ruby/constant.rb,
lib/decode/language/ruby/function.rb,
lib/decode/language/ruby/attribute.rb,
lib/decode/language/ruby/reference.rb,
lib/decode/language/ruby/definition.rb
Overview
The Ruby language.
Defined Under Namespace
Classes: Attribute, Block, Call, Class, Constant, Definition, Function, Method, Module, Parser, Reference, Segment, Singleton
Class Method Summary collapse
-
.definitions_for(input, &block) ⇒ Object
Parse the input yielding definitions.
-
.name ⇒ Object
The canoical name of the language for use in output formatting.
-
.reference(value) ⇒ Object
Generate a language-specific reference.
-
.segments_for(input, &block) ⇒ Object
Parse the input yielding interleaved comments and code segments.
Class Method Details
.definitions_for(input, &block) ⇒ Object
Parse the input yielding definitions.
42 43 44 |
# File 'lib/decode/language/ruby.rb', line 42 def self.definitions_for(input, &block) Parser.new.definitions_for(input, &block) end |
.name ⇒ Object
The canoical name of the language for use in output formatting. e.g. source code highlighting.
30 31 32 |
# File 'lib/decode/language/ruby.rb', line 30 def self.name "ruby" end |
.reference(value) ⇒ Object
Generate a language-specific reference.
35 36 37 |
# File 'lib/decode/language/ruby.rb', line 35 def self.reference(value) Reference.new(value) end |
.segments_for(input, &block) ⇒ Object
Parse the input yielding interleaved comments and code segments.
49 50 51 |
# File 'lib/decode/language/ruby.rb', line 49 def self.segments_for(input, &block) Parser.new.segments_for(input, &block) end |