Class: BitStrings
- Inherits:
-
Object
- Object
- BitStrings
- Defined in:
- lib/bit_strings.rb,
lib/bit_strings/version.rb
Constant Summary collapse
- VERSION =
"0.1.1".freeze
Instance Method Summary collapse
- #binary_strings ⇒ Object
-
#initialize(n) ⇒ BitStrings
constructor
A new instance of BitStrings.
Constructor Details
#initialize(n) ⇒ BitStrings
Returns a new instance of BitStrings.
4 5 6 7 8 |
# File 'lib/bit_strings.rb', line 4 def initialize(n) @ar = Array.new @results = Array.new generate(n) end |
Instance Method Details
#binary_strings ⇒ Object
10 11 12 |
# File 'lib/bit_strings.rb', line 10 def binary_strings @results end |