Class: AdminIt::Partial
- Inherits:
-
Object
- Object
- AdminIt::Partial
- Defined in:
- lib/admin_it/context/context.rb
Instance Attribute Summary collapse
-
#locals ⇒ Object
readonly
Returns the value of attribute locals.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, **locals) ⇒ Partial
constructor
A new instance of Partial.
Constructor Details
#initialize(name, **locals) ⇒ Partial
Returns a new instance of Partial.
12 13 14 15 |
# File 'lib/admin_it/context/context.rb', line 12 def initialize(name, **locals) @name = name @locals = locals end |
Instance Attribute Details
#locals ⇒ Object (readonly)
Returns the value of attribute locals.
11 12 13 |
# File 'lib/admin_it/context/context.rb', line 11 def locals @locals end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/admin_it/context/context.rb', line 11 def name @name end |