Sha256: c20f67bda9cd0df1791747b9b489ec9d2928590f3d9f114010edf71feb193658

Contents?: true

Size: 1010 Bytes

Versions: 4

Compression:

Stored size: 1010 Bytes

Contents

# frozen_string_literal: true

module Phlex::Compiler::Elements
	module VCall
		def format(formatter)
			Phlex::Compiler::Generators::Element.new(
				Phlex::Compiler::Nodes::VCall.new(self),
				formatter: formatter
			).call
		end
	end

	module FCall
		def format(formatter)
			Phlex::Compiler::Generators::Element.new(
				Phlex::Compiler::Nodes::FCall.new(self),
				formatter: formatter
			).call
		end
	end

	module Command
		def format(formatter)
			Phlex::Compiler::Generators::Element.new(
				Phlex::Compiler::Nodes::Command.new(self),
				formatter: formatter
			).call
		end
	end

	module MutatingMethodAddBlock
		def format(formatter)
			Phlex::Compiler::Generators::Element.new(
				Phlex::Compiler::Nodes::MethodAddBlock.new(self),
				formatter: formatter,
				mutating: true
			).call
		end
	end

	module MethodAddBlock
		def format(formatter)
			Phlex::Compiler::Generators::Element.new(
				Phlex::Compiler::Nodes::MethodAddBlock.new(self),
				formatter: formatter
			).call
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phlex-0.5.3 lib/phlex/compiler/elements.rb
phlex-0.5.2 lib/phlex/compiler/elements.rb
phlex-0.5.1 lib/phlex/compiler/elements.rb
phlex-0.5.0 lib/phlex/compiler/elements.rb