Class: Heartml::ServerComponent

Inherits:
Object
  • Object
show all
Defined in:
lib/heartml/template_renderer.rb

Direct Known Subclasses

TemplateRenderer

Class Method Summary collapse

Class Method Details

.inherited(klass) ⇒ Object



11
12
13
14
# File 'lib/heartml/template_renderer.rb', line 11

def self.inherited(klass)
  super
  klass.include Heartml
end

.source_locationObject



5
6
7
8
9
# File 'lib/heartml/template_renderer.rb', line 5

def self.source_location
  caller_locations(1, 10).reject do |l|
    l.label == "inherited"
  end[1].absolute_path
end