soulcutter/saxerator

View on GitHub
lib/saxerator/latches/abstract_latch.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Saxerator
  module Latches
    class AbstractLatch < ::Saxerator::SaxHandler
      def open
        @open = true
      end

      def close
        @open = false
      end

      def open?
        @open
      end
    end
  end
end