Module: Dhall::Parser::Hash
- Defined in:
- lib/dhall/parser.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
551 552 553 554 555 556 557 558 559 |
# File 'lib/dhall/parser.rb', line 551 def value protocol, data = string.split(/:/, 2) Dhall::Import::IntegrityCheck.new( code: Multihashes::TABLE.key( protocol.sub(/\Asha(\d{3})/, "sha2-\\1") ), digest: [data].pack("H*") ) end |