Class: Snapple::Parser
- Inherits:
-
Object
- Object
- Snapple::Parser
- Defined in:
- lib/snapple/parser.rb
Constant Summary collapse
- FACT_FILENAME =
'all_facts.json'
Instance Attribute Summary collapse
-
#facts ⇒ Object
readonly
Returns the value of attribute facts.
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize ⇒ Parser
Returns a new instance of Parser.
8 9 10 |
# File 'lib/snapple/parser.rb', line 8 def initialize @facts = [] end |
Instance Attribute Details
#facts ⇒ Object (readonly)
Returns the value of attribute facts.
6 7 8 |
# File 'lib/snapple/parser.rb', line 6 def facts @facts end |