Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blocks to #call and #run #5

Merged
merged 2 commits into from
Mar 15, 2019
Merged

Add blocks to #call and #run #5

merged 2 commits into from
Mar 15, 2019

Conversation

AnotherRegularDude
Copy link
Member

Now, we can write something like:

class Test < Polist::Service
  def call
    yield 1, 2
  end
end

Test.call { |a, b| puts a + b } 

Isn't it cool, right? =3

@tycooon
Copy link
Member

tycooon commented Mar 15, 2019

Code looks OK, just please update readme.

@tycooon tycooon merged commit afbfae4 into umbrellio:master Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants