Class: BootWheel::Internals::Component

Inherits:
Object
  • Object
show all
Includes:
LittleWheels::Component
Defined in:
lib/boot_wheel/internals/renderer.rb,
lib/boot_wheel/internals/component.rb,
lib/boot_wheel/internals/action_pack.rb

Overview

TEMPORARY COMPATIBILITY SHIM - NOT INTENDED FOR REAL USE Might want to extract something “Official” into Little Wheels for testing outside a Rails app.

Direct Known Subclasses

Page, Table

Defined Under Namespace

Classes: TagStub

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.t(filename) ⇒ Object



6
7
8
# File 'lib/boot_wheel/internals/component.rb', line 6

def self.t(filename)
  File.read(File.expand_path("../../../templates/#{filename}", File.dirname(__FILE__)))
end

Instance Method Details

#helpersObject



21
22
23
# File 'lib/boot_wheel/internals/renderer.rb', line 21

def helpers
  BootWheel.helpers
end

#rendererObject



17
18
19
# File 'lib/boot_wheel/internals/renderer.rb', line 17

def renderer
  BootWheel.renderer
end

#to_htmlObject



31
32
33
# File 'lib/boot_wheel/internals/renderer.rb', line 31

def to_html
  to_s
end

#xObject



25
26
27
# File 'lib/boot_wheel/internals/renderer.rb', line 25

def x
  TagStub
end