Class: OpenComponents::Template

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

Overview

Internal: Wrapper object for pre-rendered 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

Returns:

  • (Object)

    the current value of key



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

def key
  @key
end

#srcObject

Returns the value of attribute src

Returns:

  • (Object)

    the current value of src



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

def src
  @src
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end