Class: Textus::Manifest::Entry::Leaf
- Inherits:
-
Base
- Object
- Textus::Manifest::Entry
- Base
- Textus::Manifest::Entry::Leaf
- Defined in:
- lib/textus/manifest/entry/leaf.rb
Constant Summary
Constants inherited from Textus::Manifest::Entry
PUBLISH_EACH_VARS, PUBLISH_EACH_VAR_RE
Instance Attribute Summary collapse
-
#publish_to ⇒ Object
readonly
Returns the value of attribute publish_to.
Attributes inherited from Base
#format, #key, #manifest, #owner, #path, #raw, #schema, #zone
Instance Method Summary collapse
-
#initialize(publish_to: [], **rest) ⇒ Leaf
constructor
A new instance of Leaf.
- #leaf? ⇒ Boolean
Methods inherited from Base
#derived?, #in_generator_zone?, #in_proposal_zone?, #intake?, #kind, #nested?, #zone_writers
Constructor Details
#initialize(publish_to: [], **rest) ⇒ Leaf
Returns a new instance of Leaf.
7 8 9 10 |
# File 'lib/textus/manifest/entry/leaf.rb', line 7 def initialize(publish_to: [], **rest) super(**rest) @publish_to = Array(publish_to) end |
Instance Attribute Details
#publish_to ⇒ Object (readonly)
Returns the value of attribute publish_to.
5 6 7 |
# File 'lib/textus/manifest/entry/leaf.rb', line 5 def publish_to @publish_to end |
Instance Method Details
#leaf? ⇒ Boolean
12 |
# File 'lib/textus/manifest/entry/leaf.rb', line 12 def leaf? = true |