Sha256: 1e0ced754d4b5c5b4d148eaad1a73214b5dc015c7f27a7709e7267b04d4f668e

Contents?: true

Size: 350 Bytes

Versions: 21

Compression:

Stored size: 350 Bytes

Contents

class Code
  class Node
    class Splat < Node
      def initialize(parsed)
        @operator = parsed.delete(:operator)
        @right = Node::Statement.new(parsed.delete(:right))
        super(parsed)
      end

      def evaluate(**args)
        @right.evaluate(**args).call(operator: @operator, arguments: [], **args)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
template-ruby-0.5.6 lib/code/node/splat.rb
language-ruby-0.5.6 lib/code/node/splat.rb
code-ruby-0.5.6 lib/code/node/splat.rb
template-ruby-0.5.5 lib/code/node/splat.rb
language-ruby-0.5.5 lib/code/node/splat.rb
code-ruby-0.5.5 lib/code/node/splat.rb
template-ruby-0.5.4 lib/code/node/splat.rb
language-ruby-0.5.4 lib/code/node/splat.rb
code-ruby-0.5.4 lib/code/node/splat.rb
template-ruby-0.5.3 lib/code/node/splat.rb
language-ruby-0.5.3 lib/code/node/splat.rb
code-ruby-0.5.3 lib/code/node/splat.rb
template-ruby-0.5.2 lib/code/node/splat.rb
language-ruby-0.5.2 lib/code/node/splat.rb
code-ruby-0.5.2 lib/code/node/splat.rb
language-ruby-0.5.1 lib/code/node/splat.rb
template-ruby-0.5.1 lib/code/node/splat.rb
code-ruby-0.5.1 lib/code/node/splat.rb
template-ruby-0.5.0 lib/code/node/splat.rb
language-ruby-0.5.0 lib/code/node/splat.rb