Skip to content

Optimize sending block as a parameter #29

@LeandroSNunes

Description

@LeandroSNunes

In the file https://github.com/adenaecommerce/pombo/blob/master/lib/pombo.rb#L30

  def self.setup(&block)
    Configuration.setup(&block)
  end

to

  def self.setup
    Configuration.setup { yield if block_given? }
  end

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions