mirror of
https://github.com/helix-editor/helix
synced 2026-07-28 23:33:35 +02:00
cd6a852c9e
This will be used by the cargo indent-check xtask to validate queries, similar to the existing indent tests in helix-core.
23 lines
283 B
Crystal
23 lines
283 B
Crystal
module Greeter
|
|
class Hello
|
|
def greet(name)
|
|
if name
|
|
puts "Hello"
|
|
elsif other
|
|
puts "Hi"
|
|
else
|
|
puts "Hey"
|
|
end
|
|
end
|
|
|
|
def classify(x)
|
|
case x
|
|
when 1
|
|
"one"
|
|
else
|
|
"many"
|
|
end
|
|
end
|
|
end
|
|
end
|