28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# File 'lib/navgate.rb', line 28
def post_setup
raise TypeError, "Expected Navgate:Builder or string" unless not_bad_type?(self.navs)
if self.navs.is_a?(String)
setup = YAML.load_file(self.navs)
temp = []
setup.each do ||
temp.push(Navgate::Builder.new do |options|
options[:selection] = [1]['selection'].split(" ")
options[:default] = [1]['default'] || nill
options[:prefix] = [1]['prefix'] || nil
options[:controller] = [1]['controller'] || nil
options[:by_id] = [1]['by_id'] || nil
options[:css_class] = [1]['css_class'] || nil
end
)
end
self.navs = temp
end
self.ignoring ||= [""]
end
|