Class: Luoma::Partial

Inherits:
Object
  • Object
show all
Defined in:
lib/luoma/markup.rb,
sig/luoma/markup.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template, scope_kind, in_scope, key) ⇒ Partial

(Template, :shared | :isolated | :inherited, Array, Integer) -> void

Parameters:

  • template (Template)
  • scope_kind (:shared, :isolated, :inherited)
  • in_scope (Array[Name])
  • key (Integer)


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_scopeArray[Name] (readonly)

Returns the value of attribute in_scope.

Returns:



47
48
49
# File 'lib/luoma/markup.rb', line 47

def in_scope
  @in_scope
end

#keyInteger (readonly)

Returns the value of attribute key.

Returns:

  • (Integer)


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.

Returns:

  • (:shared, :isolated, :inherited)


47
48
49
# File 'lib/luoma/markup.rb', line 47

def scope_kind
  @scope_kind
end

#templateTemplate (readonly)

Returns the value of attribute template.

Returns:



47
48
49
# File 'lib/luoma/markup.rb', line 47

def template
  @template
end