Module: Triplet::ViewComponent

Includes:
DSL
Defined in:
lib/triplet/view_component.rb

Constant Summary

Constants included from DSL

DSL::TAGS, DSL::VOID_TAGS

Class Method Summary collapse

Methods included from DSL

#render_triplet

Class Method Details

.included(klass) ⇒ Object



10
11
12
13
14
# File 'lib/triplet/view_component.rb', line 10

def self.included(klass)
  klass.define_method(:call) do
    render_triplet(template)
  end
end