Class: Middleman::Blog::Drafts::Options
- Inherits:
-
Object
- Object
- Middleman::Blog::Drafts::Options
- Defined in:
- lib/middleman-blog-drafts/extension.rb
Instance Attribute Summary collapse
-
#build ⇒ Object
Returns the value of attribute build.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#permalink ⇒ Object
Returns the value of attribute permalink.
-
#sources ⇒ Object
Returns the value of attribute sources.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(options = {}) ⇒ Options
Returns a new instance of Options.
7 8 9 10 11 |
# File 'lib/middleman-blog-drafts/extension.rb', line 7 def initialize(={}) .each do |k,v| self.send(:"#{k}=", v) end end |
Instance Attribute Details
#build ⇒ Object
Returns the value of attribute build.
5 6 7 |
# File 'lib/middleman-blog-drafts/extension.rb', line 5 def build @build end |
#layout ⇒ Object
Returns the value of attribute layout.
5 6 7 |
# File 'lib/middleman-blog-drafts/extension.rb', line 5 def layout @layout end |
#permalink ⇒ Object
Returns the value of attribute permalink.
5 6 7 |
# File 'lib/middleman-blog-drafts/extension.rb', line 5 def permalink @permalink end |
#sources ⇒ Object
Returns the value of attribute sources.
5 6 7 |
# File 'lib/middleman-blog-drafts/extension.rb', line 5 def sources @sources end |