Class: Jekyll::Commands::DraftMovementInfo
- Inherits:
-
Object
- Object
- Jekyll::Commands::DraftMovementInfo
- Defined in:
- lib/jekyll/commands/publish.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #from ⇒ Object
-
#initialize(params) ⇒ DraftMovementInfo
constructor
A new instance of DraftMovementInfo.
- #to ⇒ Object
Constructor Details
#initialize(params) ⇒ DraftMovementInfo
46 47 48 |
# File 'lib/jekyll/commands/publish.rb', line 46 def initialize(params) @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
45 46 47 |
# File 'lib/jekyll/commands/publish.rb', line 45 def params @params end |
Instance Method Details
#from ⇒ Object
50 51 52 |
# File 'lib/jekyll/commands/publish.rb', line 50 def from params.path end |
#to ⇒ Object
54 55 56 57 |
# File 'lib/jekyll/commands/publish.rb', line 54 def to date_stamp = params.date.strftime "%Y-%m-%d" "_posts/#{date_stamp}-#{params.name}" end |