Class: Super::Partial

Inherits:
Object
  • Object
show all
Defined in:
lib/super/partial.rb,
lib/super/partial/resolving.rb

Defined Under Namespace

Modules: Resolving

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, locals: {}) ⇒ Partial

Returns a new instance of Partial.



5
6
7
8
# File 'lib/super/partial.rb', line 5

def initialize(path, locals: {})
  @to_partial_path = path
  @locals = locals
end

Instance Attribute Details

#localsObject (readonly)

Returns the value of attribute locals.



11
12
13
# File 'lib/super/partial.rb', line 11

def locals
  @locals
end

#to_partial_pathObject (readonly)

Returns the value of attribute to_partial_path.



10
11
12
# File 'lib/super/partial.rb', line 10

def to_partial_path
  @to_partial_path
end