Module: Sai::Decorator::NamedStyles Abstract Private
- Included in:
- Sai::Decorator
- Defined in:
- lib/sai/decorator/named_styles.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
This module is meant to be included in the Sai::Decorator class to provide named style methods
Named style methods for the Sai::Decorator class
Instance Method Summary collapse
-
#blink ⇒ Decorator
Apply the ANSI style "blink" to the text.
-
#bold ⇒ Decorator
Apply the ANSI style "bold" to the text.
-
#conceal ⇒ Decorator
Apply the ANSI style "conceal" to the text.
-
#dim ⇒ Decorator
Apply the ANSI style "dim" to the text.
-
#italic ⇒ Decorator
Apply the ANSI style "italic" to the text.
-
#no_blink ⇒ Decorator
Remove the ANSI style "blink" from the text.
-
#no_conceal ⇒ Decorator
Remove the ANSI style "conceal" from the text.
-
#no_italic ⇒ Decorator
Remove the ANSI style "italic" from the text.
-
#no_reverse ⇒ Decorator
Remove the ANSI style "reverse" from the text.
-
#no_strike ⇒ Decorator
Remove the ANSI style "strike" from the text.
-
#no_underline ⇒ Decorator
Remove the ANSI style "underline" from the text.
-
#normal_intensity ⇒ Decorator
Remove any intensity styles (bold or dim) from the text.
-
#rapid_blink ⇒ Decorator
Apply the ANSI style "rapid_blink" to the text.
-
#reverse ⇒ Decorator
Apply the ANSI style "reverse" to the text.
-
#strike ⇒ Decorator
Apply the ANSI style "strike" to the text.
-
#underline ⇒ Decorator
Apply the ANSI style "underline" to the text.
Instance Method Details
#blink ⇒ Decorator
Apply the ANSI style "blink" to the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#bold ⇒ Decorator
Apply the ANSI style "bold" to the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#conceal ⇒ Decorator
Apply the ANSI style "conceal" to the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#dim ⇒ Decorator
Apply the ANSI style "dim" to the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#italic ⇒ Decorator
Apply the ANSI style "italic" to the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#no_blink ⇒ Decorator
Remove the ANSI style "blink" from the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#no_conceal ⇒ Decorator
Remove the ANSI style "conceal" from the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#no_italic ⇒ Decorator
Remove the ANSI style "italic" from the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#no_reverse ⇒ Decorator
Remove the ANSI style "reverse" from the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#no_strike ⇒ Decorator
Remove the ANSI style "strike" from the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#no_underline ⇒ Decorator
Remove the ANSI style "underline" from the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#normal_intensity ⇒ Decorator
Remove any intensity styles (bold or dim) from the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#rapid_blink ⇒ Decorator
Apply the ANSI style "rapid_blink" to the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |
#reverse ⇒ Decorator
Apply the ANSI style "reverse" to the text
238 239 240 241 242 |
# File 'lib/sai/decorator/named_styles.rb', line 238 ANSI::STYLES.each_key do |style| define_method(style) do apply_style(style) end end |