Class: Jekyll::Commands::PostMovementInfo
- Inherits:
-
Object
- Object
- Jekyll::Commands::PostMovementInfo
- Defined in:
- lib/jekyll/commands/unpublish.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #from ⇒ Object
-
#initialize(params) ⇒ PostMovementInfo
constructor
A new instance of PostMovementInfo.
- #to ⇒ Object
Constructor Details
#initialize(params) ⇒ PostMovementInfo
41 42 43 |
# File 'lib/jekyll/commands/unpublish.rb', line 41 def initialize(params) @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
40 41 42 |
# File 'lib/jekyll/commands/unpublish.rb', line 40 def params @params end |
Instance Method Details
#from ⇒ Object
45 46 47 |
# File 'lib/jekyll/commands/unpublish.rb', line 45 def from params.path end |
#to ⇒ Object
49 50 51 |
# File 'lib/jekyll/commands/unpublish.rb', line 49 def to "_drafts/#{params.name}" end |