Method: JavaClass::ClassFile::Attributes::Attributes#with

Defined in:
lib/javaclass/classfile/attributes/attributes.rb

#with(name) ⇒ Object

Find the attribute with the given name.



21
22
23
# File 'lib/javaclass/classfile/attributes/attributes.rb', line 21

def with(name)
  @attributes.find { |attr|  attr.name == name  }
end