Class: JsxRosetta::Backend::Base::File

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#contentsObject (readonly)

Returns the value of attribute contents

Returns:

  • (Object)

    the current value of contents



14
15
16
# File 'lib/jsx_rosetta/backend/base.rb', line 14

def contents
  @contents
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



14
15
16
# File 'lib/jsx_rosetta/backend/base.rb', line 14

def path
  @path
end