Class: Bitcoin::Descriptor::ScriptExpression
- Inherits:
-
Expression
- Object
- Expression
- Bitcoin::Descriptor::ScriptExpression
- Defined in:
- lib/bitcoin/descriptor/script_expression.rb
Instance Attribute Summary collapse
-
#script ⇒ Object
readonly
Returns the value of attribute script.
Instance Method Summary collapse
- #args ⇒ Object
-
#initialize(script) ⇒ ScriptExpression
constructor
A new instance of ScriptExpression.
Methods inherited from Expression
#==, #compressed_key?, #derive_path, #extract_pubkey, #to_hex, #to_s, #to_script, #top_level?, #type
Constructor Details
#initialize(script) ⇒ ScriptExpression
Returns a new instance of ScriptExpression.
7 8 9 10 |
# File 'lib/bitcoin/descriptor/script_expression.rb', line 7 def initialize(script) validate!(script) @script = script end |
Instance Attribute Details
#script ⇒ Object (readonly)
Returns the value of attribute script.
5 6 7 |
# File 'lib/bitcoin/descriptor/script_expression.rb', line 5 def script @script end |
Instance Method Details
#args ⇒ Object
12 13 14 |
# File 'lib/bitcoin/descriptor/script_expression.rb', line 12 def args script.to_s end |