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
Returns a new instance of DraftMovementInfo.
50 51 52 |
# File 'lib/jekyll/commands/publish.rb', line 50 def initialize(params) @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
49 50 51 |
# File 'lib/jekyll/commands/publish.rb', line 49 def params @params end |
Instance Method Details
#from ⇒ Object
54 55 56 |
# File 'lib/jekyll/commands/publish.rb', line 54 def from params.path end |
#to ⇒ Object
58 59 60 61 |
# File 'lib/jekyll/commands/publish.rb', line 58 def to date_stamp = params.date.strftime Jekyll::Compose::DEFAULT_DATESTAMP_FORMAT "_posts/#{date_stamp}-#{params.name}" end |