class Asciidoctor::PDF::ThemeData
Attributes
Public Class Methods
Source
# File lib/asciidoctor/pdf/theme_data.rb, line 8 def initialize data = nil @table = (data || {}).transform_keys(&:to_sym) end
Public Instance Methods
Source
# File lib/asciidoctor/pdf/theme_data.rb, line 12 def [] name @table[name.to_sym] end
Source
# File lib/asciidoctor/pdf/theme_data.rb, line 16 def []= name, value @table[name.to_sym] = value end
Source
# File lib/asciidoctor/pdf/theme_data.rb, line 28 def delete_field name @table.delete name end
Source
# File lib/asciidoctor/pdf/theme_data.rb, line 20 def each_pair &block @table.each_pair(&block) end
Source
# File lib/asciidoctor/pdf/theme_data.rb, line 24 def eql? other @table.to_h.eql? other.to_h end
Source
# File lib/asciidoctor/pdf/theme_data.rb, line 36 def method_missing name, *args if (name_str = name.to_s).end_with? '=' @table[name_str.chop.to_sym] = args[0] else @table[name] end end
Source
# File lib/asciidoctor/pdf/theme_data.rb, line 44 def respond_to? name, _include_all = false @table.key? name.to_sym end
Source
# File lib/asciidoctor/pdf/theme_data.rb, line 48 def respond_to_missing? name, _include_all = false @table.key? name.to_sym end