Class: BBGun::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/bbgun/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



11
12
13
# File 'lib/bbgun/config.rb', line 11

def initialize
    set_defaults
end

Instance Attribute Details

#allow_defaultsObject

Returns the value of attribute allow_defaults.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def allow_defaults
  @allow_defaults
end

#configed_byObject

Returns the value of attribute configed_by.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def configed_by
  @configed_by
end

#custom_tagsObject

Returns the value of attribute custom_tags.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def custom_tags
  @custom_tags
end

#disable_htmlObject

Returns the value of attribute disable_html.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def disable_html
  @disable_html
end

#image_altObject

Returns the value of attribute image_alt.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def image_alt
  @image_alt
end

#newline_enabledObject

Returns the value of attribute newline_enabled.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def newline_enabled
  @newline_enabled
end

#nobbc_enabledObject

Returns the value of attribute nobbc_enabled.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def nobbc_enabled
  @nobbc_enabled
end

#swear_filter_enabledObject

Returns the value of attribute swear_filter_enabled.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def swear_filter_enabled
  @swear_filter_enabled
end

#swear_wordsObject

Returns the value of attribute swear_words.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def swear_words
  @swear_words
end

#syntax_highlightingObject

Returns the value of attribute syntax_highlighting.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting
  @syntax_highlighting
end

#syntax_highlighting_booleanObject

Returns the value of attribute syntax_highlighting_boolean.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_boolean
  @syntax_highlighting_boolean
end

#syntax_highlighting_classObject

Returns the value of attribute syntax_highlighting_class.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_class
  @syntax_highlighting_class
end

#syntax_highlighting_commentObject

Returns the value of attribute syntax_highlighting_comment.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_comment
  @syntax_highlighting_comment
end

#syntax_highlighting_constantObject

Returns the value of attribute syntax_highlighting_constant.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_constant
  @syntax_highlighting_constant
end

#syntax_highlighting_doctypeObject

Returns the value of attribute syntax_highlighting_doctype.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_doctype
  @syntax_highlighting_doctype
end

#syntax_highlighting_escapedObject

Returns the value of attribute syntax_highlighting_escaped.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_escaped
  @syntax_highlighting_escaped
end

#syntax_highlighting_floatObject

Returns the value of attribute syntax_highlighting_float.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_float
  @syntax_highlighting_float
end

#syntax_highlighting_functionObject

Returns the value of attribute syntax_highlighting_function.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_function
  @syntax_highlighting_function
end

#syntax_highlighting_globalObject

Returns the value of attribute syntax_highlighting_global.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_global
  @syntax_highlighting_global
end

#syntax_highlighting_htmlObject

Returns the value of attribute syntax_highlighting_html.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_html
  @syntax_highlighting_html
end

#syntax_highlighting_inlineObject

Returns the value of attribute syntax_highlighting_inline.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_inline
  @syntax_highlighting_inline
end

#syntax_highlighting_instanceObject

Returns the value of attribute syntax_highlighting_instance.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_instance
  @syntax_highlighting_instance
end

#syntax_highlighting_integerObject

Returns the value of attribute syntax_highlighting_integer.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_integer
  @syntax_highlighting_integer
end

#syntax_highlighting_keywordObject

Returns the value of attribute syntax_highlighting_keyword.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_keyword
  @syntax_highlighting_keyword
end

#syntax_highlighting_line_numbersObject

Returns the value of attribute syntax_highlighting_line_numbers.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_line_numbers
  @syntax_highlighting_line_numbers
end

#syntax_highlighting_regexObject

Returns the value of attribute syntax_highlighting_regex.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_regex
  @syntax_highlighting_regex
end

#syntax_highlighting_stringObject

Returns the value of attribute syntax_highlighting_string.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_string
  @syntax_highlighting_string
end

#syntax_highlighting_symbolObject

Returns the value of attribute syntax_highlighting_symbol.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def syntax_highlighting_symbol
  @syntax_highlighting_symbol
end

#table_widthObject

Returns the value of attribute table_width.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def table_width
  @table_width
end

#url_targetObject

Returns the value of attribute url_target.



3
4
5
# File 'lib/bbgun/config.rb', line 3

def url_target
  @url_target
end

Instance Method Details

#check_enabled(sym) ⇒ Object



15
16
17
# File 'lib/bbgun/config.rb', line 15

def check_enabled(sym)
    eval "@#{sym.to_s}"
end

#from_sym(sym) ⇒ Object



19
20
21
# File 'lib/bbgun/config.rb', line 19

def from_sym(sym)
    eval "@#{sym.to_s}"
end

#set_from_sym(k, v) ⇒ Object



23
24
25
# File 'lib/bbgun/config.rb', line 23

def set_from_sym(k, v)
    eval "@#{k.to_s} = #{v.inspect}"
end