Class: Sprockets::Typescript::Compiler::Unit

Inherits:
Object
  • Object
show all
Defined in:
lib/sprockets/typescript/compiler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



16
17
18
# File 'lib/sprockets/typescript/compiler.rb', line 16

def content
  @content
end

#pathObject (readonly)

Returns the value of attribute path.



16
17
18
# File 'lib/sprockets/typescript/compiler.rb', line 16

def path
  @path
end