Class: OpenComponents::Template

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

Overview

Internal: Wrapper object for unrendered OC templates.

src - String for the template URL. type - String for template engine type. key - String for template key.

Instance Attribute Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key



33
34
35
# File 'lib/opencomponents.rb', line 33

def key
  @key
end

#srcObject

Returns the value of attribute src



33
34
35
# File 'lib/opencomponents.rb', line 33

def src
  @src
end

#typeObject

Returns the value of attribute type



33
34
35
# File 'lib/opencomponents.rb', line 33

def type
  @type
end