Class: Twig::Source
- Inherits:
-
Object
- Object
- Twig::Source
- Defined in:
- lib/twig/source.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(code, name, path = '') ⇒ Source
constructor
A new instance of Source.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/twig/source.rb', line 5 def code @code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/twig/source.rb', line 5 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/twig/source.rb', line 5 def path @path end |