Lines Matching full:options
38 def fix_references(options) argument
42 target = options.find {|x| x.name == p }
169 def create_sub_options(option, options) argument
171 raise "Only boolean option can have sub options: #{option.name}" unless option.type == 'bool'
177 options.concat sub_options
181 def options method
182 @options ||= @data.options.each_with_object([]) do |option, options|
191 options << Option.new(OpenStruct.new(lang_spec_option))
192 create_sub_options(options[-1], options)
196 options << Option.new(OpenStruct.new(main_option))
197 create_sub_options(options[-1], options)
199 options << Option.new(option)
200 create_sub_options(options[-1], options)
202 options.last.fix_references(@data.options)
204 @options