class MiniYaml::Linter::State

Attributes

comment_map[RW]
lines[RW]
locations[RW]
nodes[RW]

Public Class Methods

new(yaml) click to toggle source
# File lib/mini_yaml/linter.rb, line 282
def initialize(yaml)
  @lines = yaml.split("\n")
  @comment_map = {}
  @nodes = []
  @locations = []
end