File: template_helper.rb

package info (click to toggle)
ruby-rgen 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,428 kB
  • sloc: ruby: 11,344; xml: 1,368; yacc: 72; makefile: 10
file content (26 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (11)
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
# RGen Framework
# (c) Martin Thiede, 2006

module RGen

module TemplateLanguage

module TemplateHelper

	private

	def _splitArgsAndOptions(all)
		if all[-1] and all[-1].is_a? Hash
			args = all[0..-2] || []
			options = all[-1]
		else
			args = all
			options = {}
		end
		return args, options
	end
end

end

end