Public: Methods for managing inline elements in AsciiDoc block
Public: Get/Set the target (e.g., uri) of this inline element
Public: Get/Set the String name of the render template
Public: Get the text of this inline element
Public: Get the type (qualifier) of this inline element
# File lib/asciidoctor/inline.rb, line 16 def initialize(parent, context, text = nil, opts = {}) super(parent, context) @template_name = "inline_#{context}" @text = text @id = opts[:id] @type = opts[:type] @target = opts[:target] if opts.has_key?(:attributes) && (attributes = opts[:attributes]).is_a?(Hash) update_attributes(opts[:attributes]) unless attributes.empty? end end
# File lib/asciidoctor/inline.rb, line 31 def render renderer.render(@template_name, self).chomp end