Method: Codily::Elements::Header#setup

Defined in:
lib/codily/elements/header.rb

#setupObject



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/codily/elements/header.rb', line 18

def setup
  delete_if_empty! *i(
    regex
    substitution
  )
  force_integer! *i(
    priority
    ignore_if_set
  )
  if @hash.key?(:ignore_if_set)
    @hash[:ignore_if_set] = @hash[:ignore_if_set] == 1
  end
end