Class: Stribog::Stage::Base
- Inherits:
-
Object
- Object
- Stribog::Stage::Base
- Defined in:
- lib/stribog/stage/base.rb
Overview
Base
Direct Known Subclasses
Instance Attribute Summary collapse
-
#current_vector ⇒ Object
Returns the value of attribute current_vector.
-
#digest_length ⇒ Object
Returns the value of attribute digest_length.
-
#hash_vector ⇒ Object
Returns the value of attribute hash_vector.
-
#message_head ⇒ Object
Returns the value of attribute message_head.
-
#message_vector ⇒ Object
Returns the value of attribute message_vector.
-
#n ⇒ Object
Returns the value of attribute n.
-
#prev_stage ⇒ Object
readonly
Returns the value of attribute prev_stage.
-
#sum ⇒ Object
Returns the value of attribute sum.
-
#vector ⇒ Object
readonly
Returns the value of attribute vector.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(prev_stage, vector = Stribog.vector) ⇒ Base
constructor
A new instance of Base.
Constructor Details
Instance Attribute Details
#current_vector ⇒ Object
Returns the value of attribute current_vector.
18 19 20 |
# File 'lib/stribog/stage/base.rb', line 18 def current_vector @current_vector end |
#digest_length ⇒ Object
Returns the value of attribute digest_length.
14 15 16 |
# File 'lib/stribog/stage/base.rb', line 14 def digest_length @digest_length end |
#hash_vector ⇒ Object
Returns the value of attribute hash_vector.
15 16 17 |
# File 'lib/stribog/stage/base.rb', line 15 def hash_vector @hash_vector end |
#message_head ⇒ Object
Returns the value of attribute message_head.
17 18 19 |
# File 'lib/stribog/stage/base.rb', line 17 def @message_head end |
#message_vector ⇒ Object
Returns the value of attribute message_vector.
16 17 18 |
# File 'lib/stribog/stage/base.rb', line 16 def @message_vector end |
#n ⇒ Object
Returns the value of attribute n.
12 13 14 |
# File 'lib/stribog/stage/base.rb', line 12 def n @n end |
#prev_stage ⇒ Object (readonly)
Returns the value of attribute prev_stage.
10 11 12 |
# File 'lib/stribog/stage/base.rb', line 10 def prev_stage @prev_stage end |
#sum ⇒ Object
Returns the value of attribute sum.
13 14 15 |
# File 'lib/stribog/stage/base.rb', line 13 def sum @sum end |
#vector ⇒ Object (readonly)
Returns the value of attribute vector.
11 12 13 |
# File 'lib/stribog/stage/base.rb', line 11 def vector @vector end |
Instance Method Details
#call ⇒ Object
25 26 27 |
# File 'lib/stribog/stage/base.rb', line 25 def call raise NotImplementedYet end |