Class: Liquid2::Partial
- Inherits:
-
Object
- Object
- Liquid2::Partial
- Defined in:
- lib/liquid2/node.rb
Overview
Partial template meta data.
Instance Attribute Summary collapse
-
#in_scope ⇒ Object
readonly
Returns the value of attribute in_scope.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(name, scope, in_scope) ⇒ Partial
constructor
A new instance of Partial.
Constructor Details
#initialize(name, scope, in_scope) ⇒ Partial
Returns a new instance of Partial.
54 55 56 57 58 |
# File 'lib/liquid2/node.rb', line 54 def initialize(name, scope, in_scope) @name = name @scope = scope @in_scope = in_scope end |
Instance Attribute Details
#in_scope ⇒ Object (readonly)
Returns the value of attribute in_scope.
47 48 49 |
# File 'lib/liquid2/node.rb', line 47 def in_scope @in_scope end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
47 48 49 |
# File 'lib/liquid2/node.rb', line 47 def name @name end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
47 48 49 |
# File 'lib/liquid2/node.rb', line 47 def scope @scope end |