Class: Luoma::TemplateSource
- Inherits:
-
Object
- Object
- Luoma::TemplateSource
- Defined in:
- lib/luoma/loader.rb,
sig/luoma/loader.rbs
Overview
Template source text and meta data.
Instance Attribute Summary collapse
-
#matter ⇒ t_namespace?
Returns the value of attribute matter.
-
#name ⇒ String
Returns the value of attribute name.
-
#source ⇒ String
Returns the value of attribute source.
-
#up_to_date ⇒ Proc::_Callable?
Returns the value of attribute up_to_date.
Instance Method Summary collapse
-
#initialize(source:, name:, up_to_date: nil, matter: nil) ⇒ TemplateSource
constructor
A new instance of TemplateSource.
Constructor Details
#initialize(source:, name:, up_to_date: nil, matter: nil) ⇒ TemplateSource
Returns a new instance of TemplateSource.
27 28 29 30 31 32 |
# File 'lib/luoma/loader.rb', line 27 def initialize(source:, name:, up_to_date: nil, matter: nil) @source = source @name = name @up_to_date = up_to_date @matter = matter end |
Instance Attribute Details
#matter ⇒ t_namespace?
Returns the value of attribute matter.
25 26 27 |
# File 'lib/luoma/loader.rb', line 25 def matter @matter end |
#name ⇒ String
Returns the value of attribute name.
25 26 27 |
# File 'lib/luoma/loader.rb', line 25 def name @name end |
#source ⇒ String
Returns the value of attribute source.
25 26 27 |
# File 'lib/luoma/loader.rb', line 25 def source @source end |
#up_to_date ⇒ Proc::_Callable?
Returns the value of attribute up_to_date.
25 26 27 |
# File 'lib/luoma/loader.rb', line 25 def up_to_date @up_to_date end |