Class: Contracto::Parser
- Inherits:
-
Object
- Object
- Contracto::Parser
- Defined in:
- lib/contracto/parser.rb
Instance Method Summary collapse
- #contracts ⇒ Object
-
#initialize(strings_with_json) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(strings_with_json) ⇒ Parser
Returns a new instance of Parser.
4 5 6 |
# File 'lib/contracto/parser.rb', line 4 def initialize(strings_with_json) @json_collection = strings_with_json.map { |string| JSON.parse(string) } end |