Sha256: d4cec1108347b39a767f5017bf9b1996a0de2af7c1ec3deee825ee5b02a9d65d

Contents?: true

Size: 435 Bytes

Versions: 4

Compression:

Stored size: 435 Bytes

Contents

module Punchblock
  class Event
    class End < Event
      register :end, :core

      include HasHeaders

      def reason
        children.select { |c| c.is_a? Nokogiri::XML::Element }.first.name.to_sym
      end

      def reason=(other)
        self << Nokogiri::XML::Element.new(other.to_s, self.document)
      end

      def inspect_attributes # :nodoc:
        [:reason] + super
      end
    end # End
  end
end # Punchblock

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
punchblock-0.9.2 lib/punchblock/event/end.rb
punchblock-0.9.1 lib/punchblock/event/end.rb
punchblock-0.9.0 lib/punchblock/event/end.rb
punchblock-0.8.4 lib/punchblock/event/end.rb