Class | BinaryBlocker::FixedStringEncoder |
In: |
lib/blocker.rb
|
Parent: | SimpleEncoder |
# File lib/blocker.rb, line 383 383: def initialize(*opts) 384: initialize_options(*opts) 385: 386: @length = @opts[:length].to_i 387: raise ArgumentError.new("Missing or invalid string length") unless @length > 0 388: @format = "Z#{@length}" 389: 390: @key = @opts[:key] 391: @valid = @opts[:valid] 392: 393: initialize_data(*opts) 394: end