class Inky::Configuration
Attributes
column_count[R]
components[R]
template_engine[R]
Public Class Methods
new()
click to toggle source
# File lib/inky/configuration.rb, line 30 def initialize @template_engine = :erb @column_count = 12 @components = {} end
Public Instance Methods
column_count=(value)
click to toggle source
# File lib/inky/configuration.rb, line 48 def column_count=(value) raise TypeError, "#{value.inspect} (#{value.class}) does not respond to 'to_int'" unless value.respond_to?(:to_int) @column_count = value.to_int end
components=(value)
click to toggle source
# File lib/inky/configuration.rb, line 42 def components=(value) raise TypeError, "#{value.inspect} (#{value.class}) does not respond to 'to_hash'" unless value.respond_to?(:to_hash) @components = value.to_hash end
template_engine=(value)
click to toggle source
# File lib/inky/configuration.rb, line 36 def template_engine=(value) raise TypeError, "#{value.inspect} (#{value.class}) does not respond to 'to_sym'" unless value.respond_to?(:to_sym) @template_engine = value.to_sym end