Method: Vedeu::Null::Generic#initialize

Defined in:
lib/vedeu/null/generic.rb

#initialize(attributes = {}) ⇒ Vedeu::Null::Generic

Returns an instance of the Vedeu::Null::Generic class.

Parameters:

  • attributes (Hash<Symbol => void>) (defaults to: {})

Options Hash (attributes):

  • name (String|Symbol|NilClass)


22
23
24
25
# File 'lib/vedeu/null/generic.rb', line 22

def initialize(attributes = {})
  @attributes = attributes
  @name       = @attributes.fetch(:name, '')
end