Module: Guff::JavaSource::ClientSyntaxSupport

Defined in:
lib/guff/java_source.rb

Instance Method Summary collapse

Instance Method Details

#annotation(type) {|a| ... } ⇒ Object

Yields:

  • (a)


32
33
34
35
36
# File 'lib/guff/java_source.rb', line 32

def annotation(type)
    a = Annotation.new(type)
    yield a if block_given?
    a
end