Class: Luoma::Partial
- Inherits:
-
Object
- Object
- Luoma::Partial
- Defined in:
- lib/luoma/markup.rb,
sig/luoma/markup.rbs
Instance Attribute Summary collapse
-
#in_scope ⇒ Array[Name]
readonly
Returns the value of attribute in_scope.
-
#key ⇒ Integer
readonly
Returns the value of attribute key.
-
#scope_kind ⇒ :shared, ...
readonly
Returns the value of attribute scope_kind.
-
#template ⇒ Template
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template, scope_kind, in_scope, key) ⇒ Partial
constructor
(Template, :shared | :isolated | :inherited, Array, Integer) -> void.
Constructor Details
#initialize(template, scope_kind, in_scope, key) ⇒ Partial
(Template, :shared | :isolated | :inherited, Array, Integer) -> void
50 51 52 53 54 55 |
# File 'lib/luoma/markup.rb', line 50 def initialize(template, scope_kind, in_scope, key) @template = template @scope_kind = scope_kind @in_scope = in_scope @key = key end |
Instance Attribute Details
#in_scope ⇒ Array[Name] (readonly)
Returns the value of attribute in_scope.
47 48 49 |
# File 'lib/luoma/markup.rb', line 47 def in_scope @in_scope end |
#key ⇒ Integer (readonly)
Returns the value of attribute key.
47 48 49 |
# File 'lib/luoma/markup.rb', line 47 def key @key end |
#scope_kind ⇒ :shared, ... (readonly)
Returns the value of attribute scope_kind.
47 48 49 |
# File 'lib/luoma/markup.rb', line 47 def scope_kind @scope_kind end |
#template ⇒ Template (readonly)
Returns the value of attribute template.
47 48 49 |
# File 'lib/luoma/markup.rb', line 47 def template @template end |