Method: CSL::Info#initialize

Defined in:
lib/csl/info.rb

#initialize(attributes = {}) {|_self| ... } ⇒ Info

Returns a new instance of Info.

Yields:

  • (_self)

Yield Parameters:

  • _self (CSL::Info)

    the object that the method was called on



48
49
50
51
52
53
# File 'lib/csl/info.rb', line 48

def initialize(attributes = {})
  super(attributes, &nil)
  children[:link], children[:category] = [], []

  yield self if block_given?
end