Sha256: b48ab3a7e5d4e78fe351436c16ded602385a46636c0fb60a5afdedc7f0a8e509

Contents?: true

Size: 353 Bytes

Versions: 21

Compression:

Stored size: 353 Bytes

Contents

class Code
  class Node
    class List < Node
      def initialize(parsed)
        parsed = [] if parsed == ""
        @elements = parsed.map { |element| Node::Code.new(element) }
      end

      def evaluate(**args)
        ::Code::Object::List.new(
          @elements.map { |element| element.evaluate(**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/list.rb
language-ruby-0.5.6 lib/code/node/list.rb
code-ruby-0.5.6 lib/code/node/list.rb
template-ruby-0.5.5 lib/code/node/list.rb
language-ruby-0.5.5 lib/code/node/list.rb
code-ruby-0.5.5 lib/code/node/list.rb
template-ruby-0.5.4 lib/code/node/list.rb
language-ruby-0.5.4 lib/code/node/list.rb
code-ruby-0.5.4 lib/code/node/list.rb
template-ruby-0.5.3 lib/code/node/list.rb
language-ruby-0.5.3 lib/code/node/list.rb
code-ruby-0.5.3 lib/code/node/list.rb
template-ruby-0.5.2 lib/code/node/list.rb
language-ruby-0.5.2 lib/code/node/list.rb
code-ruby-0.5.2 lib/code/node/list.rb
language-ruby-0.5.1 lib/code/node/list.rb
template-ruby-0.5.1 lib/code/node/list.rb
code-ruby-0.5.1 lib/code/node/list.rb
template-ruby-0.5.0 lib/code/node/list.rb
language-ruby-0.5.0 lib/code/node/list.rb