class Speculations::Parser::Context::Include

Attributes

lnb[R]
parent[R]

Public Class Methods

new(parent:, lnb:) click to toggle source
# File lib/speculations/parser/context/include.rb, line 20
def initialize(parent:, lnb:)
  @parent = parent
  @lnb    = lnb
end

Public Instance Methods

add_line(line) click to toggle source
# File lib/speculations/parser/context/include.rb, line 5
def add_line line 
  lines << line
  self
end
lines() click to toggle source
# File lib/speculations/parser/context/include.rb, line 10
def lines
   @__lines__ ||= []
end
to_code() click to toggle source
# File lib/speculations/parser/context/include.rb, line 14
def to_code
  parent.map_lines("# #{parent.filename}:#{lnb}", lines)
end