mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
10 lines
228 B
Ruby
10 lines
228 B
Ruby
# -*- coding: utf-8 -*-
|
|
require 'erb'
|
|
|
|
template = ERB.new <<EOF
|
|
<%#-*- coding: Big5 -*-%>
|
|
\_\_ENCODING\_\_ is <%= \_\_ENCODING\_\_ %>.
|
|
x is <%= x %>.
|
|
EOF
|
|
x = 5 # OK - the template can see the value of x
|
|
puts template.result |