Class: BibtexToScrapbox::SbPage
- Inherits:
-
Object
- Object
- BibtexToScrapbox::SbPage
- Defined in:
- lib/bibtex_to_scrapbox.rb
Instance Method Summary collapse
-
#initialize ⇒ SbPage
constructor
A new instance of SbPage.
- #json ⇒ Object
- #push_empty_text ⇒ Object
- #push_text(s) ⇒ Object
Constructor Details
#initialize ⇒ SbPage
Returns a new instance of SbPage.
49 50 51 |
# File 'lib/bibtex_to_scrapbox.rb', line 49 def initialize() @sb_json=[] end |
Instance Method Details
#json ⇒ Object
53 54 55 |
# File 'lib/bibtex_to_scrapbox.rb', line 53 def json() @sb_json end |
#push_empty_text ⇒ Object
63 64 65 |
# File 'lib/bibtex_to_scrapbox.rb', line 63 def push_empty_text() @sb_json << "" end |
#push_text(s) ⇒ Object
57 58 59 60 61 |
# File 'lib/bibtex_to_scrapbox.rb', line 57 def push_text(s) s.split("\n").each do |s1| @sb_json << s1 end end |