Class: JsxRosetta::Backend::Base::File
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::Backend::Base::File
- Defined in:
- lib/jsx_rosetta/backend/base.rb
Overview
A single file produced by a backend.
path : String — relative output path (e.g. "button_component.rb").
contents : String — the file body.
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents
14 15 16 |
# File 'lib/jsx_rosetta/backend/base.rb', line 14 def contents @contents end |
#path ⇒ Object (readonly)
Returns the value of attribute path
14 15 16 |
# File 'lib/jsx_rosetta/backend/base.rb', line 14 def path @path end |