Class: IocRb::BeanMetadata::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/ioc_rb/bean_metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ Attribute

Returns a new instance of Attribute.



50
51
52
53
54
# File 'lib/ioc_rb/bean_metadata.rb', line 50

def initialize(name, options)
  IocRb::ArgsValidator.has_key!(options, :ref)
  @name = name
  @ref  = options[:ref]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



48
49
50
# File 'lib/ioc_rb/bean_metadata.rb', line 48

def name
  @name
end

#refObject (readonly)

Returns the value of attribute ref.



48
49
50
# File 'lib/ioc_rb/bean_metadata.rb', line 48

def ref
  @ref
end