Files
dolt/types/ref.go
T
Erik Arvidsson 1a4bdae624 Make types.Ref explicit
No more implicit Get or Equals
2015-09-18 14:03:19 -04:00

25 lines
311 B
Go

package types
import (
"github.com/attic-labs/noms/ref"
)
type Ref struct {
R ref.Ref
}
func (r Ref) Equals(other Value) bool {
if other, ok := other.(Ref); ok {
return r.Ref() == other.Ref()
}
return false
}
func (r Ref) Ref() ref.Ref {
return r.R
}
func (r Ref) Chunks() []Future {
return nil
}