user92335: I have a script and it looks like this: 76a914af7a4a30243f2301e6a14a4979ae099d52f560d488ac. How can I create an instance of class Bitcoin::Script from ruby-bitcoin? It has to be parsed, I believe, but how? I posted a GitHub ticket too.

user92335: I guess I found an answer:
script = Bitcoin::Script.new([hash].pack('H*'))


92335: <p>I have a script and it looks like this: <code>76a914af7a4a30243f2301e6a14a4979ae099d52f560d488ac</code>. How can I create an instance of class <code>Bitcoin::Script</code> from <a href="https://github.com/lian/bitcoin-ruby/issues/291" rel="nofollow noreferrer">ruby-bitcoin</a>? It has to be parsed, I believe, but how? I posted a GitHub <a href="https://github.com/lian/bitcoin-ruby/issues/291" rel="nofollow noreferrer">ticket</a> too.</p>
 92335: <p>I guess I found an answer:</p>

<pre><code>script = Bitcoin::Script.new([hash].pack('H*'))
</code></pre>
