Class: CaseCheck::Cfmodule::Name

Inherits:
CaseCheck::Cfmodule show all
Defined in:
lib/case_check/references/cfmodule.rb

Instance Attribute Summary

Attributes inherited from CaseCheck::Cfmodule

#expected_path, #resolved_to

Attributes inherited from Reference

#line, #source, #text

Instance Method Summary collapse

Methods inherited from CaseCheck::Cfmodule

search

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_nameObject



30
31
32
# File 'lib/case_check/references/cfmodule.rb', line 30

def type_name
  "cfmodule with name"
end