lib/voom/presenters/dsl/components/lists/header.rb in voom-presenters-0.1.13 vs lib/voom/presenters/dsl/components/lists/header.rb in voom-presenters-0.2.0

- old
+ new

@@ -4,11 +4,11 @@ module Components module Lists class Header < Line attr_accessor :total_lines - def initialize(context:, **attribs_, &block) - super(type: :header, context: context, **attribs_, &block) + def initialize(**attribs_, &block) + super(type: :header, **attribs_, &block) @total_lines = attribs.delete(:total_lines) || 0 expand! end end end \ No newline at end of file