Sign in
eclipse
/
dltk
/
org.eclipse.dltk.ruby
/
59ebcbbf7c8ca9bbdda990c042cd0670239ab6ce
/
.
/
plugins
/
org.eclipse.dltk.ruby.formatter
/
src
/
org
/
eclipse
/
dltk
/
ruby
/
formatter
/
formatterPreview.rb
blob: 7b99809dd88e6ac9d8e29aa4d5728f5ae068f0d2 [
file
] [
log
] [
blame
]
#
# A sample source file for the code formatter preview
#
class
Preview
def
printBinaryDigit
(
digit
)
if
digit
<
0
||
digit
>=
2
puts
"Wrong digit"
end
case
digit
when
0
puts
"zero"
when
1
puts
"one"
end
end
end