quickdraw/compilation_equivalence_cases/lambda_source_file.rb

Lines

100%

10 of 10 covered

Branches

—

0 of 0 covered

Methods

100%

1 of 1 covered

1# frozen_string_literal: true
2
31module EquivalenceCases
41 module LambdaSourceFile
51 class LambdaSourceFile < Phlex::HTML
61 def view_template
79 span { -> { __FILE__ }.call }
812 span { -> { -> { __FILE__ }.call }.call }
99 span { ->(path = __FILE__) { path }.call }
109 span { ->(path: __FILE__) { path }.call }
119 span { -> { File.read(__FILE__, 29) }.call }
129 -> { span { __FILE__ }; plain __FILE__ }.call
13 end
14 end
15 end
16end