class Exercise::Output::Pytest
Attributes
summary[R]
Public Class Methods
new(string)
click to toggle source
# File lib/commands/exercise/output/pytest.rb, line 6 def initialize(string) @summary = chomp(string[/(=+.*100%\])/m, 1]) end
Public Instance Methods
chomp(string)
click to toggle source
# File lib/commands/exercise/output/pytest.rb, line 10 def chomp(string) string&.chomp end