Class: JavaClass::ClassFile::Attributes::SourceFile

Inherits:
Attribute show all
Defined in:
lib/javaclass/classfile/attributes/attributes.rb

Instance Attribute Summary collapse

Attributes inherited from Attribute

#name

Instance Method Summary collapse

Constructor Details

#initialize(name, source_file) ⇒ SourceFile

Returns a new instance of SourceFile.



107
108
109
110
# File 'lib/javaclass/classfile/attributes/attributes.rb', line 107

def initialize(name, source_file)
  super(name)
  @source_file = source_file
end

Instance Attribute Details

#source_fileObject (readonly)

Returns the value of attribute source_file.



105
106
107
# File 'lib/javaclass/classfile/attributes/attributes.rb', line 105

def source_file
  @source_file
end