app/models/option_set.rb
# Looks up an option node in this set by its name. Useful for specs.
Looks up an option node in this set by its name. Useful for specs.
Looks up an option node in this set by its name . Useful for specs .
def node(*names)
      names.reduce(self) do |match, name|
        match = match.children.detect { |c| c.name == name }
        raise ArgumentError, "Could find option with name #{name} in set #{set}" if match.nil?
        match
      end
    end
def node ( * names ) names . reduce ( self ) do | match , name | match = match . children . detect { | c | c . name == name } raise ArgumentError , "Could find option with name #{name} in set #{set}" if match . nil? match end end
Looks up an option node in this set by its name.
Looks up an option node in this set by its name .
names
<not_specific>