Top Level Namespace

Defined Under Namespace

Classes: Brll

Instance Method Summary collapse

Instance Method Details

#exec(exc) ⇒ Object



40
41
42
# File 'lib/BRLL.rb', line 40

def exec(exc);
system(exc)
end

#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

#rn(rnum) ⇒ Object



43
44
45
# File 'lib/BRLL.rb', line 43

def rn(rnum);
rand(rnum)
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

#var(variable, value) ⇒ Object



49
50
51
# File 'lib/BRLL.rb', line 49

def var(variable,value)
  variable = value
end

#wait(wnm) ⇒ Object



46
47
48
# File 'lib/BRLL.rb', line 46

def wait(wnm)
  sleep wnm
end