Class: Redwood::Chunk::Quote
Instance Attribute Summary collapse
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
Instance Method Summary collapse
- #color ⇒ Object
- #expandable? ⇒ Boolean
- #indexable? ⇒ Boolean
-
#initialize(lines) ⇒ Quote
constructor
A new instance of Quote.
- #inlineable? ⇒ Boolean
- #patina_color ⇒ Object
- #patina_text ⇒ Object
- #quotable? ⇒ Boolean
- #viewable? ⇒ Boolean
Constructor Details
#initialize(lines) ⇒ Quote
Returns a new instance of Quote.
242 243 244 |
# File 'lib/sup/message_chunks.rb', line 242 def initialize lines @lines = lines end |
Instance Attribute Details
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
241 242 243 |
# File 'lib/sup/message_chunks.rb', line 241 def lines @lines end |
Instance Method Details
#color ⇒ Object
254 |
# File 'lib/sup/message_chunks.rb', line 254 def color; :quote_color end |
#expandable? ⇒ Boolean
248 |
# File 'lib/sup/message_chunks.rb', line 248 def ; !inlineable? end |
#indexable? ⇒ Boolean
249 |
# File 'lib/sup/message_chunks.rb', line 249 def indexable?; end |
#inlineable? ⇒ Boolean
246 |
# File 'lib/sup/message_chunks.rb', line 246 def inlineable?; @lines.length == 1 end |
#patina_color ⇒ Object
252 |
# File 'lib/sup/message_chunks.rb', line 252 def patina_color; :quote_patina_color end |
#patina_text ⇒ Object
253 |
# File 'lib/sup/message_chunks.rb', line 253 def patina_text; "(#{lines.length} quoted lines)" end |
#quotable? ⇒ Boolean
247 |
# File 'lib/sup/message_chunks.rb', line 247 def quotable?; true end |
#viewable? ⇒ Boolean
250 |
# File 'lib/sup/message_chunks.rb', line 250 def viewable?; false end |