Class: Quby::Compiler::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/quby/compiler/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, filename:, content:) ⇒ Output

Returns a new instance of Output.



6
7
8
9
10
# File 'lib/quby/compiler/output.rb', line 6

def initialize(key:, filename:, content:)
  @key = key
  @filename = filename
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



4
5
6
# File 'lib/quby/compiler/output.rb', line 4

def content
  @content
end

#filenameObject (readonly)

Returns the value of attribute filename.



4
5
6
# File 'lib/quby/compiler/output.rb', line 4

def filename
  @filename
end

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/quby/compiler/output.rb', line 4

def key
  @key
end