class ClientPages::Configuration

Attributes

caching[RW]
content_path[RW]
markdown_extensions[R]
raw_markdown[RW]
remote[RW]
remote_content_path[RW]
render_options[R]

Public Class Methods

new() click to toggle source
# File lib/client_pages/configuration.rb, line 6
def initialize
  @content_path = 'content'
  @render_options = {}
  @markdown_extensions = {}
end

Public Instance Methods

markdown_extensions=(options) click to toggle source
# File lib/client_pages/configuration.rb, line 16
def markdown_extensions=(options)
  markdown_extensions.merge!(options)
end
render_options=(options) click to toggle source
# File lib/client_pages/configuration.rb, line 12
def render_options=(options)
  render_options.merge!(options)
end
to_hash() click to toggle source
# File lib/client_pages/configuration.rb, line 20
def to_hash
  Hash[instance_variables.map { |name| [name[1..-1].to_sym, instance_variable_get(name)] }]
end