Class: Slippers::Template
- Inherits:
-
Object
- Object
- Slippers::Template
- Defined in:
- lib/engine/template.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(template) ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize(template) ⇒ Template
Returns a new instance of Template.
3 4 5 |
# File 'lib/engine/template.rb', line 3 def initialize(template) @template = template end |
Instance Attribute Details
#template ⇒ Object (readonly)
Returns the value of attribute template.
6 7 8 |
# File 'lib/engine/template.rb', line 6 def template @template end |
Instance Method Details
#eql?(other) ⇒ Boolean
8 9 10 |
# File 'lib/engine/template.rb', line 8 def eql?(other) template.eql?(other.template) end |
#hash ⇒ Object
12 13 14 |
# File 'lib/engine/template.rb', line 12 def hash template.hash end |