Sha256: 83c550f34d745a30522d391ad472d998b24cbfb2f0433cd366ad80996a86cfe7
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
# frozen_string_literal: true # Incase you need to throw an error related to steppy class SteppyError < StandardError attr_reader :steppy # rubocop:disable Airbnb/OptArgParameters def initialize(steppy = nil) # rubocop:enable Airbnb/OptArgParameters if steppy @steppy = steppy message = steppy.is_a?(String) ? steppy : steppy.to_json end super(message) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
steppy-0.8.0 | lib/steppy/error.rb |
steppy-0.7.0 | lib/steppy/error.rb |