Class: Template

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:) ⇒ Template

Returns a new instance of Template.



8
9
10
11
12
13
# File 'lib/template.rb', line 8

def initialize(path:)
  @path = path
  @error = nil

  validate_path
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



6
7
8
# File 'lib/template.rb', line 6

def error
  @error
end

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/template.rb', line 5

def path
  @path
end