class Mondrian::OLAP::Schema::Annotations
Public Class Methods
new(name = nil, attributes = {}, parent = nil, &block)
click to toggle source
Calls superclass method
# File lib/mondrian/olap/schema.rb, line 488 def initialize(name = nil, attributes = {}, parent = nil, &block) if name.is_a?(Hash) attributes = name name = nil end if block_given? super(name, attributes, parent, &block) else super(nil, {}, parent) do attributes.each do |key, value| annotation key.to_s, value.to_s end end end end