class Lucid::Parser::SpecBuilder::Spec

Attributes

file[R]
node[R]

Public Class Methods

new(file, node) click to toggle source
# File lib/lucid/spec_builder.rb, line 110
def initialize(file, node)
  @file, @node = file, node
end

Private Instance Methods

comment() click to toggle source
# File lib/lucid/spec_builder.rb, line 124
def comment
  Lucid::AST::Comment.new(node.comments.map{ |comment| comment.value }.join("\n"))
end
location() click to toggle source
# File lib/lucid/spec_builder.rb, line 120
def location
  Lucid::AST::Location.new(file, node.line)
end
tags() click to toggle source
# File lib/lucid/spec_builder.rb, line 116
def tags
  Lucid::AST::Tags.new(nil, node.tags)
end