Sha256: 15573f24c4ea2773ad20af3bedcfb9aae768e4ab11cffa69acf217074a2d3a22
Contents?: true
Size: 562 Bytes
Versions: 3
Compression:
Stored size: 562 Bytes
Contents
module Saml module Kit module Buildable extend ActiveSupport::Concern class_methods do def build(*args) builder(*args) do |builder| yield builder if block_given? end.build end def build_xml(*args) builder(*args) do |builder| yield builder if block_given? end.to_xml end def builder(*args) builder_class.new(*args).tap do |builder| yield builder if block_given? end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
saml-kit-1.0.9 | lib/saml/kit/buildable.rb |
saml-kit-1.0.8 | lib/saml/kit/buildable.rb |
saml-kit-1.0.7 | lib/saml/kit/buildable.rb |