Class: BibtexToScrapbox::SbPage

Inherits:
Object
  • Object
show all
Defined in:
lib/bibtex_to_scrapbox.rb

Instance Method Summary collapse

Constructor Details

#initializeSbPage

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

#jsonObject



53
54
55
# File 'lib/bibtex_to_scrapbox.rb', line 53

def json()
  @sb_json
end

#push_empty_textObject



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