Module: RunLengthEncoder

Defined in:
lib/run_length_encoder.rb,
lib/run_length_encoder/version.rb

Defined Under Namespace

Modules: Converters Classes: Instance

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.for_integer_array(opts = {}) ⇒ Object



8
9
10
11
12
13
# File 'lib/run_length_encoder.rb', line 8

def self.for_integer_array(opts = {})
  default_opts = {
    converter: RunLengthEncoder::Converters.method(:integer_array)
  }
  Instance.new(default_opts.merge(opts))
end

.new(opts = {}) ⇒ Object



4
5
6
# File 'lib/run_length_encoder.rb', line 4

def self.new(opts = {})
  Instance.new(opts)
end