Module: Mirah::AST::Annotated
- Included in:
- ClassDefinition, Field, FieldAssignment, FieldDeclaration, MethodDefinition
- Defined in:
- lib/mirah/ast.rb
Instance Attribute Summary collapse
-
#annotations ⇒ Object
Returns the value of attribute annotations.
Instance Method Summary collapse
Instance Attribute Details
#annotations ⇒ Object
Returns the value of attribute annotations.
352 353 354 |
# File 'lib/mirah/ast.rb', line 352 def annotations @annotations end |
Instance Method Details
#annotation(name) ⇒ Object
354 355 356 357 |
# File 'lib/mirah/ast.rb', line 354 def annotation(name) name = name.to_s annotations.find {|a| a.name == name} end |