Class: Toolbox::FieldConfig
Overview
Holds the configuration for a non-editable field
Instance Method Summary collapse
Instance Method Details
#==(s) ⇒ Object
170 171 172 173 174 175 |
# File 'lib/toolbox/config.rb', line 170 def ==(s) (s.is_a?(Hash) && s[:name] && @name.to_s == s[:name].to_s) || (s.is_a?(Symbol) && @name.to_s == s.to_s) || (s.is_a?(String) && @name.to_s == s) || (s.is_a?(FieldConfig) && s.name.to_s == @name.to_s) end |