Method: Sequel::Plugins::XmlSerializer::ClassMethods#xml_deserialize_name_proc
- Defined in:
- lib/sequel/plugins/xml_serializer.rb
#xml_deserialize_name_proc(opts = OPTS) ⇒ Object
Return a proc (or any other object that responds to []), used for formatting XML tag names when serializing to XML. This should not be used directly by user code.
172 173 174 175 176 177 178 179 180 |
# File 'lib/sequel/plugins/xml_serializer.rb', line 172 def xml_deserialize_name_proc(opts=OPTS) if opts[:name_proc] opts[:name_proc] elsif opts[:underscore] UNDERSCORE else IDENTITY end end |