Class: Super::Partial

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Partial.



3
4
5
6
# File 'lib/super/partial.rb', line 3

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

Instance Attribute Details

#localsObject (readonly)

Returns the value of attribute locals.



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

def locals
  @locals
end

#to_partial_pathObject (readonly)

Returns the value of attribute to_partial_path.



8
9
10
# File 'lib/super/partial.rb', line 8

def to_partial_path
  @to_partial_path
end