Class: Artisan::Activity::Formatters::Source
- Inherits:
-
Object
- Object
- Artisan::Activity::Formatters::Source
- Defined in:
- lib/artisan/activity/formatters/source.rb
Instance Method Summary collapse
-
#initialize(change) ⇒ Source
constructor
A new instance of Source.
- #type ⇒ Object
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
#type ⇒ Object
10 11 12 |
# File 'lib/artisan/activity/formatters/source.rb', line 10 def type return @change.type.gsub(/Change/, '') end |