Class: Textus::Manifest::Entry::Leaf

Inherits:
Base show all
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

Attributes inherited from Base

#format, #key, #manifest, #owner, #path, #raw, #schema, #zone

Instance Method Summary collapse

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_toObject (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

Returns:

  • (Boolean)


12
# File 'lib/textus/manifest/entry/leaf.rb', line 12

def leaf? = true