Sha256: 9b62a138cd1d37bd56b7c9e521d47cbb7e5b18d7242010334982a2cd78522721
Contents?: true
Size: 418 Bytes
Versions: 11
Compression:
Stored size: 418 Bytes
Contents
# frozen_string_literal: true class String ## # Adding our transition method to the default String class to prevent # exceptions while transitioning from an invalid state. This method # gets overwritten by valid HasStateMachine::State classes. # # @return [Boolean] false # # @example # "some random string".transition_to("draft") #=> false def transition_to(_desired_state) false end end
Version data entries
11 entries across 11 versions & 1 rubygems