Module: Xmlenc::Builder::Base::XmlMapperInstanceMethods

Defined in:
lib/xmlenc/builder/base.rb

Instance Method Summary collapse

Instance Method Details

#from_xml=(bool) ⇒ Object


23
24
25
# File 'lib/xmlenc/builder/base.rb', line 23

def from_xml=(bool)
  @from_xml = bool
end

#from_xml?Boolean

Returns:

  • (Boolean)

27
28
29
# File 'lib/xmlenc/builder/base.rb', line 27

def from_xml?
  @from_xml
end

#initialize(attributes = {}) ⇒ Object


17
18
19
20
21
# File 'lib/xmlenc/builder/base.rb', line 17

def initialize(attributes = {})
  attributes.each do |key, value|
    send("#{key}=", value) if respond_to?("#{key}=") && value.present?
  end
end