Class: Pray::RenderPolicy

Inherits:
Struct
  • Object
show all
Defined in:
lib/pray/manifest.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#churnObject

Returns the value of attribute churn

Returns:

  • (Object)

    the current value of churn



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

def churn
  @churn
end

#conflictObject

Returns the value of attribute conflict

Returns:

  • (Object)

    the current value of conflict



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

def conflict
  @conflict
end

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



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

def header
  @header
end

#line_endingsObject

Returns the value of attribute line_endings

Returns:

  • (Object)

    the current value of line_endings



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

def line_endings
  @line_endings
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



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

def mode
  @mode
end

#section_markersObject

Returns the value of attribute section_markers

Returns:

  • (Object)

    the current value of section_markers



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

def section_markers
  @section_markers
end

Class Method Details

.defaultObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/pray/manifest.rb', line 13

def self.default
  new(
    mode: "managed",
    conflict: "fail",
    churn: "minimal",
    header: true,
    section_markers: true,
    line_endings: "lf"
  )
end