Class: Artisan::Activity::Formatters::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/artisan/activity/formatters/source.rb

Instance Method Summary collapse

Constructor Details

#initialize(change) ⇒ Source

Returns a new instance of Source.



6
7
8
# File 'lib/artisan/activity/formatters/source.rb', line 6

def initialize(change)
  @change = change
end

Instance Method Details

#typeObject



10
11
12
# File 'lib/artisan/activity/formatters/source.rb', line 10

def type
  return @change.type.gsub(/Change/, '')
end