Class: Indocker::Directives::Partial
- Defined in:
- lib/indocker/directives/partial.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, context, opts = {}) ⇒ Partial
constructor
A new instance of Partial.
- #to_s ⇒ Object
Methods inherited from Base
#build_directive?, #container_directive?, #partial?, #prepare_directive?
Constructor Details
#initialize(name, context, opts = {}) ⇒ Partial
Returns a new instance of Partial.
4 5 6 7 8 |
# File 'lib/indocker/directives/partial.rb', line 4 def initialize(name, context, opts = {}) @name = name @context = context @opts = opts end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
2 3 4 |
# File 'lib/indocker/directives/partial.rb', line 2 def context @context end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/indocker/directives/partial.rb', line 2 def name @name end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/indocker/directives/partial.rb', line 10 def to_s inspect end |