Class: Texter::Formatter
- Inherits:
-
Object
- Object
- Texter::Formatter
- Defined in:
- app/lib/texter/formatter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #block ⇒ String, NilClass
-
#initialize(body, options = {}) ⇒ Formatter
constructor
A new instance of Formatter.
- #inline ⇒ String, NilClass
Constructor Details
#initialize(body, options = {}) ⇒ Formatter
Returns a new instance of Formatter.
5 6 7 8 9 |
# File 'app/lib/texter/formatter.rb', line 5 def initialize(body, = {}) @body = body @options = .dup reverse_merge_defaults end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'app/lib/texter/formatter.rb', line 3 def body @body end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'app/lib/texter/formatter.rb', line 3 def @options end |
Instance Method Details
#block ⇒ String, NilClass
17 18 19 |
# File 'app/lib/texter/formatter.rb', line 17 def block raise NotImplementedError end |
#inline ⇒ String, NilClass
12 13 14 |
# File 'app/lib/texter/formatter.rb', line 12 def inline raise NotImplementedError end |