Class: CaseCheck::Cfmodule::Name
- Inherits:
-
CaseCheck::Cfmodule
- Object
- Struct
- Reference
- CaseCheck::Cfmodule
- CaseCheck::Cfmodule::Name
- Defined in:
- lib/case_check/references/cfmodule.rb
Instance Attribute Summary
Attributes inherited from CaseCheck::Cfmodule
Attributes inherited from Reference
Instance Method Summary collapse
-
#initialize(source, text, line) ⇒ Name
constructor
A new instance of Name.
- #type_name ⇒ Object
Methods inherited from CaseCheck::Cfmodule
Methods inherited from Reference
#message, #resolution, #substituted_text, substitutions
Constructor Details
#initialize(source, text, line) ⇒ Name
Returns a new instance of Name.
22 23 24 25 26 27 28 |
# File 'lib/case_check/references/cfmodule.rb', line 22 def initialize(source, text, line) super @expected_path = substituted_text.gsub('.', '/') + ".cfm" @resolved_to = CustomTag.directories.inject(nil) do |resolved, dir| resolved || resolve_in(dir) end end |
Instance Method Details
#type_name ⇒ Object
30 31 32 |
# File 'lib/case_check/references/cfmodule.rb', line 30 def type_name "cfmodule with name" end |