Class: JavaClass::ClassFile::Attributes::Attribute

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

Overview

Base class of the attributes

Author

Peter Kofler

Direct Known Subclasses

InnerClasses, SourceFile

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Attribute

Returns a new instance of Attribute.



99
100
101
# File 'lib/javaclass/classfile/attributes/attributes.rb', line 99

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



97
98
99
# File 'lib/javaclass/classfile/attributes/attributes.rb', line 97

def name
  @name
end