Class: Assets::Rule::Rename

Inherits:
Assets::Rule show all
Defined in:
lib/assets/rule/rename.rb

Overview

Rule to rename other rule

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Assets::Rule

#asset, #fresh_at?, #rename

Instance Attribute Details

#nameString (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return name

Returns:

  • (String)


23
24
25
# File 'lib/assets/rule/rename.rb', line 23

def name
  @name
end

Instance Method Details

#bodyString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return body

Returns:

  • (String)


31
32
33
# File 'lib/assets/rule/rename.rb', line 31

def body
  rule.body
end

#mimeMime

Return mime

Returns:



41
42
43
# File 'lib/assets/rule/rename.rb', line 41

def mime
  rule.mime
end

#updated_atTime

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return updated at

Returns:

  • (Time)


51
52
53
# File 'lib/assets/rule/rename.rb', line 51

def updated_at
  rule.updated_at
end