Module: Duby::AST::Annotated
- Included in:
- ClassDefinition, Field, FieldAssignment, FieldDeclaration, MethodDefinition
- Defined in:
- lib/duby/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.
237 238 239 |
# File 'lib/duby/ast.rb', line 237 def annotations @annotations end |
Instance Method Details
#annotation(name) ⇒ Object
239 240 241 242 |
# File 'lib/duby/ast.rb', line 239 def annotation(name) name = name.to_s annotations.find {|a| a.name == name} end |