Module: ZipFips

Included in:
Fixnum, Integer
Defined in:
lib/zipfips.rb,
lib/zipfips/version.rb

Constant Summary collapse

ZIP_MIN =
1000
VERSION =
"0.2.0"

Instance Method Summary collapse

Instance Method Details

#is_fips?Boolean

Returns:

  • (Boolean)


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

def is_fips?
  !!zips_hash[i_s]
end

#is_zip?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/zipfips.rb', line 6

def is_zip?
  !!fips_hash[i_s] && !is_fips?
end

#to_fipsObject



22
23
24
# File 'lib/zipfips.rb', line 22

def to_fips
  get_fips_from_zip
end

#to_zipObject



18
19
20
# File 'lib/zipfips.rb', line 18

def to_zip
  get_zip_from_fips
end

#zipfipsObject



14
15
16
# File 'lib/zipfips.rb', line 14

def zipfips
  is_zip? ? to_fips : to_zip
end