Class: JsxRosetta::Backend::Base
- Inherits:
-
Object
- Object
- JsxRosetta::Backend::Base
- Defined in:
- lib/jsx_rosetta/backend/base.rb
Overview
Backends consume an IR::Component and emit one or more output files. The return value is an array of File value objects so callers can decide whether to write to disk, return as strings, or compare against a golden fixture.
Direct Known Subclasses
Defined Under Namespace
Classes: File
Instance Method Summary collapse
Instance Method Details
#emit(_ir_component) ⇒ Object
16 17 18 |
# File 'lib/jsx_rosetta/backend/base.rb', line 16 def emit(_ir_component) raise NotImplementedError, "#{self.class} must implement #emit" end |