method
new
new(serializable, options = nil)
public
Hide source
# File activemodel/lib/active_model/serializers/xml.rb, line 47 def initialize(serializable, options = nil) @serializable = serializable @options = options ? options.dup : {} @options[:only] = Array.wrap(@options[:only]).map { |n| n.to_s } @options[:except] = Array.wrap(@options[:except]).map { |n| n.to_s } end