Class: Super::Partial
- Inherits:
-
Object
- Object
- Super::Partial
- Defined in:
- lib/super/partial.rb
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.
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
#locals ⇒ Object (readonly)
Returns the value of attribute locals.
9 10 11 |
# File 'lib/super/partial.rb', line 9 def locals @locals end |
#to_partial_path ⇒ Object (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 |