File: result_container.rb

package info (click to toggle)
ruby-delayer-deferred 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 316 kB
  • sloc: ruby: 1,650; sh: 2; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 171 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
# -*- coding: utf-8 -*-

Delayer::Deferred::ResultContainer = Struct.new(:success_flag, :value) do
  def ok?
    success_flag
  end

  def ng?
    !success_flag
  end
end