Class: Prick::Build::InlineNode
Overview
Note that #path refers to the build file
Instance Attribute Summary collapse
-
#stmts ⇒ Object
readonly
Returns the value of attribute stmts.
Attributes inherited from Node
#args, #kind, #parent, #path, #phase
Instance Method Summary collapse
-
#initialize(parent, phase, path, *stmts) ⇒ InlineNode
constructor
A new instance of InlineNode.
- #inspect ⇒ Object
Methods inherited from Node
#dir, #dump, #lines, #name, #prefix_lines, #relpath, #schema, #schema=, #source, #source_lines, #to_s
Constructor Details
#initialize(parent, phase, path, *stmts) ⇒ InlineNode
Returns a new instance of InlineNode.
93 94 95 96 |
# File 'lib/prick/builder/node.rb', line 93 def initialize(parent, phase, path, *stmts) super(parent, phase, :inline, path) @stmts = Array(stmts).flatten end |
Instance Attribute Details
#stmts ⇒ Object (readonly)
Returns the value of attribute stmts.
91 92 93 |
# File 'lib/prick/builder/node.rb', line 91 def stmts @stmts end |
Instance Method Details
#inspect ⇒ Object
98 |
# File 'lib/prick/builder/node.rb', line 98 def inspect() "#@path \"#{@stmts.join(";")}\"" end |