class Scribble::Partial
Attributes
format[R]
Public Class Methods
new(source, format: nil)
click to toggle source
# File lib/scribble/partial.rb, line 5 def initialize source, format: nil @source, @format = source, format end
Public Instance Methods
nodes()
click to toggle source
# File lib/scribble/partial.rb, line 19 def nodes @nodes ||= transform.nodes end
parse()
click to toggle source
Parse and transform
# File lib/scribble/partial.rb, line 11 def parse @parse ||= Parsing::Parser.new.parse @source, reporter: Parsing::Reporter.new end
transform()
click to toggle source
# File lib/scribble/partial.rb, line 15 def transform @transform ||= Parsing::Transform.new.apply parse end