lib/operatic/result.rb in operatic-0.2.0 vs lib/operatic/result.rb in operatic-0.3.0

- old
+ new

@@ -67,14 +67,14 @@ def success? @success end - # Returns the full hash of data attached to the result via {#success!}, - # {#failure!}, or convenience accessors added with {.generate}. + # Returns the full (frozen) hash of data attached to the result via + # {#success!}, {#failure!}, or convenience accessors added with {.generate}. # # @return [Hash] - def to_hash + def to_h @data end private def set_data(data)