Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/prawn/compatibility.rb,
lib/prawn/text/box.rb
Overview
Why would we ever use Ruby 1.8.7 when we can backport with something as simple as this?
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#first_line ⇒ Object
341 342 343 |
# File 'lib/prawn/text/box.rb', line 341 def first_line self.each_line { |line| return line } end |