Class: Twig::Source

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, name, path = '') ⇒ Source

Returns a new instance of Source.



7
8
9
10
11
# File 'lib/twig/source.rb', line 7

def initialize(code, name, path = '')
  @code = code
  @name = name
  @path = path
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end