lib/invar/scope.rb in invar-0.7.0 vs lib/invar/scope.rb in invar-0.8.0

- old
+ new

@@ -24,14 +24,12 @@ alias / fetch alias [] fetch def method_missing(symbol, *args) - if symbol == :pretend - raise ::Invar::ImmutableRealityError, ::Invar::ImmutableRealityError::PRETEND_MSG - else - super - end + raise ::Invar::ImmutableRealityError, ::Invar::ImmutableRealityError::PRETEND_MSG if symbol == :pretend + + super end # Returns a hash representation of this scope and subscopes. # # @return [Hash] a hash representation of this scope