Class: Super::Partial
- Inherits:
-
Object
- Object
- Super::Partial
- Defined in:
- lib/super/partial.rb,
lib/super/partial/resolving.rb
Defined Under Namespace
Modules: Resolving
Instance Attribute Summary collapse
-
#locals ⇒ Object
readonly
Returns the value of attribute locals.
-
#to_partial_path ⇒ Object
readonly
Returns the value of attribute to_partial_path.
Instance Method Summary collapse
-
#initialize(path, locals: {}) ⇒ Partial
constructor
A new instance of Partial.
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
#locals ⇒ Object (readonly)
Returns the value of attribute locals.
11 12 13 |
# File 'lib/super/partial.rb', line 11 def locals @locals end |
#to_partial_path ⇒ Object (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 |