Skip to content

Instantly share code, notes, and snippets.

@m-k
Last active April 24, 2020 09:13
Show Gist options
  • Save m-k/73fa4becf8cda091a44d60571a806f84 to your computer and use it in GitHub Desktop.
Save m-k/73fa4becf8cda091a44d60571a806f84 to your computer and use it in GitHub Desktop.
class IssuesPresenter
attr_reader :issues, :filters
def initialize(issues, filters)
@issues, @filters = issues, filters
end
def has_selected_filters?
filter.any?
end
def all_issues_are_resolved?
issues.all?(:resolved?)
end
end
@MatayoshiMariano
Copy link

You missed the : before filters in the attr_reader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment