Class: TurboRex::Fuzzer::Seed
- Inherits:
-
Object
- Object
- TurboRex::Fuzzer::Seed
- Defined in:
- lib/turborex/fuzzer/seed.rb
Instance Attribute Summary collapse
-
#seed ⇒ Object
readonly
Returns the value of attribute seed.
Class Method Summary collapse
Instance Method Summary collapse
- #container=(c) ⇒ Object
-
#initialize(seed) ⇒ Seed
constructor
A new instance of Seed.
Constructor Details
#initialize(seed) ⇒ Seed
Returns a new instance of Seed.
6 7 8 |
# File 'lib/turborex/fuzzer/seed.rb', line 6 def initialize(seed) @seed = seed end |
Instance Attribute Details
#seed ⇒ Object (readonly)
Returns the value of attribute seed.
4 5 6 |
# File 'lib/turborex/fuzzer/seed.rb', line 4 def seed @seed end |
Class Method Details
.from_file(path, separator = "\n") ⇒ Object
14 15 16 |
# File 'lib/turborex/fuzzer/seed.rb', line 14 def self.from_file(path, separator="\n") File.read(path).split(separator).map {|s| new(s)} end |
Instance Method Details
#container=(c) ⇒ Object
10 11 12 |
# File 'lib/turborex/fuzzer/seed.rb', line 10 def container=(c) end |