Module: Bibliothecary::Analyser::ClassMethods
- Defined in:
- lib/bibliothecary/analyser.rb
Instance Method Summary collapse
- #map_dependencies(hash, key, type, source = nil) ⇒ Object
- #parser_name ⇒ Object
- #platform_name ⇒ Object
Instance Method Details
#map_dependencies(hash, key, type, source = nil) ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/bibliothecary/analyser.rb', line 62 def map_dependencies(hash, key, type, source = nil) hash.fetch(key, []).map do |name, requirement| Dependency.new( platform: parser_name, name: name, requirement: requirement, type: type, source: source ) end end |
#parser_name ⇒ Object
58 59 60 |
# File 'lib/bibliothecary/analyser.rb', line 58 def parser_name @parser_name ||= name.to_s.split("::").last.downcase.freeze end |
#platform_name ⇒ Object
54 55 56 |
# File 'lib/bibliothecary/analyser.rb', line 54 def platform_name parser_name end |