Sha256: 936e3d53bf2154f3d80ab7b191927997df52049e4fdf8667d0bdaa205a53a2f3

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

module Phlex
  class Tag
    class StandardElement < Tag
      include Node

      def call
        "<#{meta_data}>#{super}</#{self.class.value}>"
      end

      def method_missing(*args, **kwargs, &block)
        super.tap { Context.new(self).call(&block) if block_given? }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phlex-0.1.0 lib/phlex/tag/standard_element.rb