Class: ReVIEW::RawNode
- Defined in:
- lib/review/node.rb,
lib/review/compiler.rb
Instance Attribute Summary collapse
-
#builder ⇒ Object
readonly
Returns the value of attribute builder.
-
#compiler ⇒ Object
readonly
Returns the value of attribute compiler.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(compiler, builder, position, content) ⇒ RawNode
constructor
A new instance of RawNode.
- #to_doc ⇒ Object
Methods inherited from Node
#inspect, #to_json, #to_raw, #to_s_by
Constructor Details
#initialize(compiler, builder, position, content) ⇒ RawNode
Returns a new instance of RawNode.
1077 1078 1079 1080 1081 1082 |
# File 'lib/review/compiler.rb', line 1077 def initialize(compiler, builder, position, content) @compiler = compiler @builder = builder @position = position @content = content end |
Instance Attribute Details
#builder ⇒ Object (readonly)
Returns the value of attribute builder.
1084 1085 1086 |
# File 'lib/review/compiler.rb', line 1084 def builder @builder end |
#compiler ⇒ Object (readonly)
Returns the value of attribute compiler.
1083 1084 1085 |
# File 'lib/review/compiler.rb', line 1083 def compiler @compiler end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
1086 1087 1088 |
# File 'lib/review/compiler.rb', line 1086 def content @content end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
1085 1086 1087 |
# File 'lib/review/compiler.rb', line 1085 def position @position end |
Instance Method Details
#to_doc ⇒ Object
203 204 205 |
# File 'lib/review/node.rb', line 203 def to_doc @compiler.compile_raw(@builder, @content.join("")) end |