Class: BBGun::Config
- Inherits:
-
Object
- Object
- BBGun::Config
- Defined in:
- lib/bbgun/config.rb
Instance Attribute Summary collapse
-
#allow_defaults ⇒ Object
Returns the value of attribute allow_defaults.
-
#configed_by ⇒ Object
Returns the value of attribute configed_by.
-
#custom_tags ⇒ Object
Returns the value of attribute custom_tags.
-
#disable_html ⇒ Object
Returns the value of attribute disable_html.
-
#image_alt ⇒ Object
Returns the value of attribute image_alt.
-
#newline_enabled ⇒ Object
Returns the value of attribute newline_enabled.
-
#nobbc_enabled ⇒ Object
Returns the value of attribute nobbc_enabled.
-
#swear_filter_enabled ⇒ Object
Returns the value of attribute swear_filter_enabled.
-
#swear_words ⇒ Object
Returns the value of attribute swear_words.
-
#syntax_highlighting ⇒ Object
Returns the value of attribute syntax_highlighting.
-
#syntax_highlighting_boolean ⇒ Object
Returns the value of attribute syntax_highlighting_boolean.
-
#syntax_highlighting_class ⇒ Object
Returns the value of attribute syntax_highlighting_class.
-
#syntax_highlighting_comment ⇒ Object
Returns the value of attribute syntax_highlighting_comment.
-
#syntax_highlighting_constant ⇒ Object
Returns the value of attribute syntax_highlighting_constant.
-
#syntax_highlighting_doctype ⇒ Object
Returns the value of attribute syntax_highlighting_doctype.
-
#syntax_highlighting_escaped ⇒ Object
Returns the value of attribute syntax_highlighting_escaped.
-
#syntax_highlighting_float ⇒ Object
Returns the value of attribute syntax_highlighting_float.
-
#syntax_highlighting_function ⇒ Object
Returns the value of attribute syntax_highlighting_function.
-
#syntax_highlighting_global ⇒ Object
Returns the value of attribute syntax_highlighting_global.
-
#syntax_highlighting_html ⇒ Object
Returns the value of attribute syntax_highlighting_html.
-
#syntax_highlighting_inline ⇒ Object
Returns the value of attribute syntax_highlighting_inline.
-
#syntax_highlighting_instance ⇒ Object
Returns the value of attribute syntax_highlighting_instance.
-
#syntax_highlighting_integer ⇒ Object
Returns the value of attribute syntax_highlighting_integer.
-
#syntax_highlighting_keyword ⇒ Object
Returns the value of attribute syntax_highlighting_keyword.
-
#syntax_highlighting_line_numbers ⇒ Object
Returns the value of attribute syntax_highlighting_line_numbers.
-
#syntax_highlighting_regex ⇒ Object
Returns the value of attribute syntax_highlighting_regex.
-
#syntax_highlighting_string ⇒ Object
Returns the value of attribute syntax_highlighting_string.
-
#syntax_highlighting_symbol ⇒ Object
Returns the value of attribute syntax_highlighting_symbol.
-
#table_width ⇒ Object
Returns the value of attribute table_width.
-
#url_target ⇒ Object
Returns the value of attribute url_target.
Instance Method Summary collapse
- #check_enabled(sym) ⇒ Object
- #from_sym(sym) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #set_from_sym(k, v) ⇒ Object
Constructor Details
#initialize ⇒ Config
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_defaults ⇒ Object
Returns the value of attribute allow_defaults.
3 4 5 |
# File 'lib/bbgun/config.rb', line 3 def allow_defaults @allow_defaults end |
#configed_by ⇒ Object
Returns the value of attribute configed_by.
3 4 5 |
# File 'lib/bbgun/config.rb', line 3 def configed_by @configed_by end |
#custom_tags ⇒ Object
Returns the value of attribute custom_tags.
3 4 5 |
# File 'lib/bbgun/config.rb', line 3 def @custom_tags end |
#disable_html ⇒ Object
Returns the value of attribute disable_html.
3 4 5 |
# File 'lib/bbgun/config.rb', line 3 def disable_html @disable_html end |
#image_alt ⇒ Object
Returns the value of attribute image_alt.
3 4 5 |
# File 'lib/bbgun/config.rb', line 3 def image_alt @image_alt end |
#newline_enabled ⇒ Object
Returns the value of attribute newline_enabled.
3 4 5 |
# File 'lib/bbgun/config.rb', line 3 def newline_enabled @newline_enabled end |
#nobbc_enabled ⇒ Object
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_enabled ⇒ Object
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_words ⇒ Object
Returns the value of attribute swear_words.
3 4 5 |
# File 'lib/bbgun/config.rb', line 3 def swear_words @swear_words end |
#syntax_highlighting ⇒ Object
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_boolean ⇒ Object
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_class ⇒ Object
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_comment ⇒ Object
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_constant ⇒ Object
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_doctype ⇒ Object
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_escaped ⇒ Object
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_float ⇒ Object
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_function ⇒ Object
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_global ⇒ Object
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_html ⇒ Object
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_inline ⇒ Object
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_instance ⇒ Object
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_integer ⇒ Object
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_keyword ⇒ Object
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_numbers ⇒ Object
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_regex ⇒ Object
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_string ⇒ Object
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_symbol ⇒ Object
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_width ⇒ Object
Returns the value of attribute table_width.
3 4 5 |
# File 'lib/bbgun/config.rb', line 3 def table_width @table_width end |
#url_target ⇒ Object
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 |