Module: Giftrim

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

Defined Under Namespace

Classes: Image

Constant Summary collapse

VERSION =
"0.0.4"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.processorObject

Returns the value of attribute processor.



10
11
12
# File 'lib/giftrim.rb', line 10

def processor
  @processor
end

.timeoutObject

Returns the value of attribute timeout.



9
10
11
# File 'lib/giftrim.rb', line 9

def timeout
  @timeout
end

Class Method Details

.frame_number_wanted(total_number, target_number) ⇒ Object



13
14
15
# File 'lib/giftrim.rb', line 13

def frame_number_wanted total_number, target_number
  (0..(total_number-2)).to_a.spread(target_number)
end