Class: BambooRat::RubyComponent

Inherits:
Component show all
Defined in:
lib/bamboo_rat/component_tree.rb

Instance Attribute Summary

Attributes inherited from Component

#path

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from BambooRat::Component

Class Method Details

.gem_path(path) ⇒ Object



42
43
44
# File 'lib/bamboo_rat/component_tree.rb', line 42

def self.gem_path(path)
  path + '/Gemfile'
end

.ruby?(path) ⇒ Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/bamboo_rat/component_tree.rb', line 46

def self.ruby?(path)
  File.exist?(gem_path(path))
end

Instance Method Details

#nameObject



38
39
40
# File 'lib/bamboo_rat/component_tree.rb', line 38

def name
  'Ruby'
end