struct

Similar::UnifiedHunkHeader

Inherits JSON::Serializable < Struct < Value < Object

Unified diff hunk header.

Constructors

new(old_range : UnifiedDiffHunkRange, new_range : UnifiedDiffHunkRange)
Source
new(ops : Array(DiffOp)) : UnifiedHunkHeader

Creates a hunk header from a (non empty) slice of diff ops.

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

new_range
Source
old_range
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source