blob: fafc1fb81e378594d78ba47102cf1bb050b23c7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
def is_rbx?
defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/
end
module M
def hello; :hello_module; end
end
$o = Object.new
def $o.hello; :hello_singleton; end
# A comment for hello
# It spans two lines and is indented by 2 spaces
def hello; :hello; end
# a
# b
def comment_test1; end
# a
# b
def comment_test2; end
# a
#
# b
def comment_test3; end
# a
# b
def comment_test4; end
# a
# b
# c
# d
def comment_test5; end
# This is a comment for MyLambda
MyLambda = lambda { :lambda }
MyProc = Proc.new { :proc }
|