class ConcreteOpts

Manages the command line interface for the ActionScript 3 Mock Framework Class generation tool.

Public Class Methods

add_optional(op,config) click to toggle source
# File lib/shed/opts/concrete_opts.rb, line 23
def self.add_optional(op,config)
  op.on("-i", "--interface FILE", String, "File path to ActionScript interface file.") do |value|
    config[:interface] = value
  end

  op.on("-t", "--type STRING", String, "Optional output type, defaults to 'class'. Accepts 'class', 'mock4as' and 'imp'.") do |value|
    config[:type] = value
  end
end
default_config() click to toggle source
# File lib/shed/opts/concrete_opts.rb, line 17
def self.default_config
  dc = superclass.default_config
  dc[:type] = 'class'
  dc
end
description() click to toggle source
# File lib/shed/opts/concrete_opts.rb, line 13
def self.description
  "ActionScript Concrete Class Generator"
end
name() click to toggle source
# File lib/shed/opts/concrete_opts.rb, line 9
def self.name
  "as-concrete"
end