Class: Lurker::Json::Writer
- Inherits:
-
Object
- Object
- Lurker::Json::Writer
- Defined in:
- lib/lurker/json/writer.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path) ⇒ Writer
constructor
A new instance of Writer.
- #write(schema) ⇒ Object
Constructor Details
#initialize(path) ⇒ Writer
Returns a new instance of Writer.
10 11 12 13 |
# File 'lib/lurker/json/writer.rb', line 10 def initialize(path) @path = path @dirname = File.dirname(path) end |
Class Method Details
.write(schema, path) ⇒ Object
5 6 7 |
# File 'lib/lurker/json/writer.rb', line 5 def write(schema, path) new(path).write(schema) end |