Module: Virtus::Annotated

Defined in:
lib/virtus_annotations.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extend?(attribute) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/virtus_annotations.rb', line 3

def self.extend?(attribute)
  true
end

Instance Method Details

#annotationsObject



7
8
9
# File 'lib/virtus_annotations.rb', line 7

def annotations
  options[:annotations] || {}
end