Class: Jekyll::Share::GroupConfig
- Inherits:
-
Object
- Object
- Jekyll::Share::GroupConfig
- Defined in:
- lib/jekyll/share/config.rb
Overview
Group configurations.
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #extend_with ⇒ Object
- #icon_size ⇒ Object
-
#initialize(name) ⇒ GroupConfig
constructor
A new instance of GroupConfig.
- #services ⇒ Object
- #template ⇒ Object
- #wrappers ⇒ Object
Constructor Details
#initialize(name) ⇒ GroupConfig
Returns a new instance of GroupConfig.
58 59 60 61 62 63 |
# File 'lib/jekyll/share/config.rb', line 58 def initialize(name) raise InvalidGroup unless Config.groups.key? name @name = name @config = Config.groups[name] end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
56 57 58 |
# File 'lib/jekyll/share/config.rb', line 56 def config @config end |
Instance Method Details
#extend_with ⇒ Object
74 75 76 |
# File 'lib/jekyll/share/config.rb', line 74 def extend_with @config["extend_with"] || [] end |
#icon_size ⇒ Object
82 83 84 |
# File 'lib/jekyll/share/config.rb', line 82 def icon_size @config["icon_size"] || "large" end |
#services ⇒ Object
78 79 80 |
# File 'lib/jekyll/share/config.rb', line 78 def services @config["services"] || [] end |
#template ⇒ Object
65 66 67 |
# File 'lib/jekyll/share/config.rb', line 65 def template @config["template"] || "icon" end |
#wrappers ⇒ Object
69 70 71 72 |
# File 'lib/jekyll/share/config.rb', line 69 def wrappers @config["wrappers"] || { "group_start" => "", "group_end" => "", "service_start" => "", "service_end" => "" } end |