Class: DayOneKindle::ClippingParser
- Defined in:
- lib/dayone-kindle/clipping_parser.rb
Constant Summary collapse
- REGEX =
%r{^ (?<book>.+)\s\((?<authors>.+)\)\n \-\s(?<metadata>.+)\n\n (?<quote>.+)? $}xi
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #highlight ⇒ Object
-
#initialize(raw) ⇒ ClippingParser
constructor
A new instance of ClippingParser.
Constructor Details
#initialize(raw) ⇒ ClippingParser
Returns a new instance of ClippingParser.
11 12 13 |
# File 'lib/dayone-kindle/clipping_parser.rb', line 11 def initialize(raw) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
3 4 5 |
# File 'lib/dayone-kindle/clipping_parser.rb', line 3 def raw @raw end |