Module: Logirel::VS::ProjectTypes
- Defined in:
- lib/logirel/vs/project_types.rb
Constant Summary collapse
- TYPEMAP =
{ '{3AC096D0-A1C2-E12C-1390-A8335801FDAB}' => :test, '{39D444FD-B490-1554-5274-2D612A165298}' => :test_cs, '{4FD007E8-1A56-7E75-70CA-0466484D4F98}' => :test_vb, '{349C5851-65DF-11DA-9384-00065B846F21}' => :web_aspnet, '{F85E285D-A4E0-4152-9332-AB1D724D3325}' => :web_mvc2, '{E53F8FEA-EAE0-44A6-8774-FFD645390401}' => :web_mvc3 }
- WEB =
[:test, :test_cs, :test_vb]
- TEST =
[:web_aspnet, :web_mvc2, :web_mvc3]
Class Method Summary collapse
Class Method Details
.test?(type) ⇒ Boolean
19 20 21 |
# File 'lib/logirel/vs/project_types.rb', line 19 def self.test?(type) WEB.include? type end |
.to_type(guid) ⇒ Object
15 16 17 |
# File 'lib/logirel/vs/project_types.rb', line 15 def self.to_type(guid) TYPEMAP[guid.upcase] end |
.web?(type) ⇒ Boolean
23 24 25 |
# File 'lib/logirel/vs/project_types.rb', line 23 def self.web?(type) TEST.include? type end |