Top Level Namespace

Defined Under Namespace

Classes: Brll

Instance Method Summary collapse

Instance Method Details

#iseql(um, dozz, codigo) ⇒ Object



20
21
22
23
24
# File 'lib/BRLL.rb', line 20

def iseql(um,dozz,codigo)
	if um == dozz
	codigo
	end
end

#ismit(mium, midozz, micod) ⇒ Object



30
31
32
33
34
# File 'lib/BRLL.rb', line 30

def ismit(mium,midozz,micod)
	if mium << midozz
	micod
	end
end

#ismot(mtum, mtdozz, mtcod) ⇒ Object



25
26
27
28
29
# File 'lib/BRLL.rb', line 25

def ismot(mtum,mtdozz,mtcod)
	if mtum >> mtdozz
	mtcod
	end
end

#isneql(neum, nedozz, necod) ⇒ Object



35
36
37
38
39
# File 'lib/BRLL.rb', line 35

def isneql(neum,nedozz,necod)
	if neum != nedozz
	necod
	end
end

#listenObject



11
12
13
# File 'lib/BRLL.rb', line 11

def listen;
	gets.chomp
end

#output(oput) ⇒ Object



8
9
10
# File 'lib/BRLL.rb', line 8

def output(oput);
	puts oput
end

#serve(page, code) ⇒ Object



14
15
16
17
18
19
# File 'lib/BRLL.rb', line 14

def serve(page,code)
	puts "BRLL ==> server running at localhost:4567"
    get page do
      code
    end
end