Class: Minitest::Reporters::Suite

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/reporters/base_reporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Suite

Returns a new instance of Suite.



5
6
7
# File 'lib/minitest/reporters/base_reporter.rb', line 5

def initialize(name)
  @name = name
end

Instance Attribute Details

#name (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/minitest/reporters/base_reporter.rb', line 4

def name
  @name
end

Instance Method Details

#==(other)



9
10
11
# File 'lib/minitest/reporters/base_reporter.rb', line 9

def ==(other)
  name == other.name
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/minitest/reporters/base_reporter.rb', line 13

def eql?(other)
  self == other
end

#hash



17
18
19
# File 'lib/minitest/reporters/base_reporter.rb', line 17

def hash
  name.hash
end

#to_s



21
22
23
# File 'lib/minitest/reporters/base_reporter.rb', line 21

def to_s
  name.to_s
end