module Snapple
Constants
- VERSION
Attributes
facts[R]
Public Class Methods
fact()
click to toggle source
# File lib/snapple.rb, line 8 def self.fact facts.sample end
fact!()
click to toggle source
# File lib/snapple.rb, line 12 def self.fact! facts.sample.text end
Private Class Methods
facts()
click to toggle source
# File lib/snapple.rb, line 17 def self.facts @facts ||= parser.parse end
parser()
click to toggle source
# File lib/snapple.rb, line 21 def self.parser @parser ||= Snapple::Parser.new end