Sha256: 3c9203b8ee94ddd19cafc9c460583839c111b9f82abd32173849a6634acb803d

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

require 'rubygems'
require 'simple-annotations'

class A
  using AnnotationRefinement

  annotate!

  §test 1234                    # Numeric
  §foobar color: 'cyan'         # Hash by double splat, like keyword
  §testbar 10, {}, [], 'string' # Hybrid by splat
  §barfoo                       # Boolean set true
  §footest 'string'             # String                    
  def method
      
  end

end


pp A.annotations[:method]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple-annotations-1.0.0 samples/test_fields.rb