summaryrefslogtreecommitdiffstats
path: root/web/server/h2o/libh2o/deps/mruby-require/test/d/required.rb
blob: d6218cd03ace33fc37bf2be33fc9c1c5841fc8bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# global variables
$gvar0 = 1
$gvar1 = 1

# toplevel local variables
lvar0 = 1
lvar1 = 1

# define a procedure
def proc0
  :proc0
end

# define a new method of an existing class.
class MrubyRequireClass
  def foo
    :foo
  end
end