lib/code/node/nothing.rb in code-ruby-0.10.4 vs lib/code/node/nothing.rb in code-ruby-0.11.0

- old
+ new

@@ -1,15 +1,16 @@ # frozen_string_literal: true class Code class Node class Nothing < Node - def initialize(nothing) - @nothing = nothing + def initialize(parsed) + return if parsed.blank? + @nothing = parsed.presence end def evaluate(**_args) - ::Code::Object::Nothing.new + Object::Nothing.new end end end end