Class: YardTypes::Result Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/yard_types.rb

Overview

This class is abstract.

Base class for Success and Failure

Direct Known Subclasses

Failure, Success

Instance Method Summary collapse

Constructor Details

#initialize(pass = false) ⇒ Result


12
13
14
# File 'lib/yard_types.rb', line 12

def initialize(pass = false)
  @pass = pass
end

Instance Method Details

#success?Boolean


16
17
18
# File 'lib/yard_types.rb', line 16

def success?
  @pass == true
end