class Decode::Syntax::Link
Attributes
definition[R]
Public Class Methods
new(range, definition)
click to toggle source
Calls superclass method
# File lib/decode/syntax/link.rb, line 26 def initialize(range, definition) @definition = definition super(range) end
Public Instance Methods
apply(output, rewriter)
click to toggle source
# File lib/decode/syntax/link.rb, line 34 def apply(output, rewriter) output << rewriter.link_to( @definition, rewriter.text_for(@range) ) return self.size end