Class: Slippers::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/engine/template.rb

Direct Known Subclasses

FileTemplate

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#templateObject (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

Returns:

  • (Boolean)


8
9
10
# File 'lib/engine/template.rb', line 8

def eql?(other)
  template.eql?(other.template)
end

#hashObject



12
13
14
# File 'lib/engine/template.rb', line 12

def hash
  template.hash
end