Class: SchemaExtractor::Runner
- Inherits:
-
Object
- Object
- SchemaExtractor::Runner
- Defined in:
- lib/schema_extractor/runner.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(args) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(args) ⇒ Runner
Returns a new instance of Runner.
11 12 13 |
# File 'lib/schema_extractor/runner.rb', line 11 def initialize(args) = OptionParser.new.parse(args) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/schema_extractor/runner.rb', line 9 def end |
Instance Method Details
#run ⇒ Object
15 16 17 18 |
# File 'lib/schema_extractor/runner.rb', line 15 def run schemas = extractor.extract schemas.each { |s| output(s) } end |