Class: Sprockets::Typescript::Compiler::Unit
- Inherits:
-
Object
- Object
- Sprockets::Typescript::Compiler::Unit
- Defined in:
- lib/sprockets/typescript/compiler.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, content = nil) ⇒ Unit
constructor
A new instance of Unit.
Constructor Details
#initialize(path, content = nil) ⇒ Unit
Returns a new instance of Unit.
18 19 20 21 |
# File 'lib/sprockets/typescript/compiler.rb', line 18 def initialize(path, content = nil) @path = path @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
16 17 18 |
# File 'lib/sprockets/typescript/compiler.rb', line 16 def content @content end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
16 17 18 |
# File 'lib/sprockets/typescript/compiler.rb', line 16 def path @path end |