Module: Sevgi::Derender::Elements::Text Private

Defined in:
lib/sevgi/derender/elements/text.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Element strategy for text nodes.

Instance Method Summary collapse

Instance Method Details

#decompileArray<String>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Converts a text node into unformatted Sevgi DSL lines.

Returns:

  • (Array<String>)

    unformatted Ruby source lines



11
# File 'lib/sevgi/derender/elements/text.rb', line 11

def decompile(*) = ["_ #{Ruby.literal(content)}"]