class GemRule
Attributes
gem_name[RW]
Public Class Methods
new(framework, attributes = {})
click to toggle source
Calls superclass method
Rule::new
# File lib/technologist/rules/gem_rule.rb, line 6 def initialize(framework, attributes = {}) super self.file_name = 'Gemfile' self.gem_name ||= framework.downcase self.file_content_pattern = /^\s*gem ["']#{gem_name}["']/ end