Sha256: 82f2480557d34b13d3437c1dd83a810af50566ed28bfbed74be5093073c0b7a3

Contents?: true

Size: 439 Bytes

Versions: 3

Compression:

Stored size: 439 Bytes

Contents

module GitWrapper
  module Results
    class LogInfo
      def initialize(attributes)
        attributes.each do |name, value|
          define_singleton_method name, lambda { value }
        end
      end

      def parents
        parent_hashes.split
      end

      def abbreviated_parents
        abbreviated_parent_hashes.split
      end

      def merge?
        parents.length == 2
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
git_wrapper-1.0.2 lib/git_wrapper/results/log_info.rb
git_wrapper-1.0.1 lib/git_wrapper/results/log_info.rb
git_wrapper-1.0.0 lib/git_wrapper/results/log_info.rb