Top Level Namespace
Defined Under Namespace
Modules: Clir, Precedences
Instance Method Summary
collapse
Instance Method Details
#precedencize(choices, filename, &block) ⇒ Object
3
4
5
6
7
|
# File 'lib/precedences/exposed.rb', line 3
def precedencize(choices, filename, &block)
prec = Clir::Precedence.new(filename)
Clir::Precedence.current = prec
return prec.sort(choices, &block)
end
|
#set_precedence(choix, filename = nil) ⇒ Object
9
10
11
12
13
14
15
16
|
# File 'lib/precedences/exposed.rb', line 9
def set_precedence(choix, filename = nil)
prec = if filename.nil?
Clir::Precedence.current
else
Clir::Precedence.new(filename)
end
prec.send(:set_precedences_ids, choix)
end
|