Sha256: e5ea6e8d305c084a82eff67f206019e9ee1e7dc0c08d67f689761ada7d6bcb88
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
module Lotus module Helpers module HtmlHelper # Text node. Allows for text to be inserted between HTML tags. # # @since 0.2.5 # @api private class TextNode # Initialize a new text node # # @param content [String,#to_s] The content to be added. # # @return [Lotus::Helpers::HtmlHelper::TextNode] # # @since 0.2.5 # @api private def initialize(content) @content = content.to_s end # Resolve and return the output # # @return [String] the output # # @since 0.2.5 # @api private def to_s Utils::Escape.html(@content) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lotus-helpers-0.2.6 | lib/lotus/helpers/html_helper/text_node.rb |
lotus-helpers-0.2.5 | lib/lotus/helpers/html_helper/text_node.rb |