class Rspec::Usecases::Options::JsonOptions
Options
for turning usecases into JSON objects
Public Class Methods
new(config)
click to toggle source
Calls superclass method
Rspec::Usecases::Options::DynamicOptions::new
# File lib/rspec/usecases/options/json_options.rb, line 8 def initialize(config) super(:json, config, { format: :detail, print: true, write: false, file: '', open: false }) end
Public Instance Methods
openable?()
click to toggle source
# File lib/rspec/usecases/options/json_options.rb, line 26 def openable? self.open == true end
printable?()
click to toggle source
# File lib/rspec/usecases/options/json_options.rb, line 18 def printable? self.print == true end
writable?()
click to toggle source
# File lib/rspec/usecases/options/json_options.rb, line 22 def writable? write == true end