Method: CSL::Style#initialize

Defined in:
lib/csl/style.rb

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

Returns a new instance of Style.

Yields:

  • (_self)

Yield Parameters:

  • _self (CSL::Style)

    the object that the method was called on



52
53
54
55
56
57
# File 'lib/csl/style.rb', line 52

def initialize(attributes = {})
  super(attributes, &nil)
  children[:locale], children[:macro], @macros, @errors = [], [], {}, []

  yield self if block_given?
end