richtext 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41ad81aab0acaff875ab05feb5b8964ef70c6233
4
- data.tar.gz: 9896997c9fc32208909266dad2f833c98e368fe3
3
+ metadata.gz: 16ef90a0b51b4d329a49909ba65958daf6c47de2
4
+ data.tar.gz: 5deebc04e53b025b8da28ddfc706bf50631ab990
5
5
  SHA512:
6
- metadata.gz: 9d759230e7393f2f95c6e5f8b609f9ef2635cc177f9b1185519fa3d9881d767098024feed9f69399d003e1f46a15e518321e3f9534430219074377ef5e3000c0
7
- data.tar.gz: 4229b9f1b465daf570342da6cf08f34b8c7f4d6cf1793373b5cef7c301edbe4bf4ea959a02e787eeee52dd33db593cf68a7d22e5979a6422f682b1121128718c
6
+ metadata.gz: 5de128f8a275745aafd51273de5eb9e75d2fb32973e414afae0b0bddb9e7ccba96cc743611100de61ce98c0b502e6b38e2f48b83e2de9e5cde38745a361627e5
7
+ data.tar.gz: 52118715ab8bee14685d83db86bc1f4d552680b80f93e9776b3918ca678c418e5da424ebc62e74344a159da63c6c85cffae09ae79380620394bffa6ec31c66a2
@@ -52,6 +52,14 @@ module RichText
52
52
  end
53
53
  end
54
54
 
55
+ # To Plain
56
+ #
57
+ # Returns the strings from all of the leaf nodes without any formatting
58
+ # applied.
59
+ def to_plain
60
+ base.to_s
61
+ end
62
+
55
63
  # Add (+)
56
64
  #
57
65
  # Add another Document to this one. If the two are of (exactly) the same
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RichText
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: richtext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Lindberg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2016-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler