class ArticleFixtureGen::Exe::Trollop::OptionsAndMods
Adds modified attributes to lists produced by `OptionsWithDefaults`.
Attributes
all_specs[R]
Public Class Methods
call(all_specs)
click to toggle source
# File lib/article_fixture_gen/exe/option_parser/trollop/options_and_mods.rb, line 10 def self.call(all_specs) new(all_specs).call end
new(all_specs)
click to toggle source
# File lib/article_fixture_gen/exe/option_parser/trollop/options_and_mods.rb, line 22 def initialize(all_specs) @all_specs = all_specs self end
Public Instance Methods
call()
click to toggle source
# File lib/article_fixture_gen/exe/option_parser/trollop/options_and_mods.rb, line 14 def call container = OptionsWithDefaults.call(all_specs).to_hash container[:modified] = Internals.modified_from(container) Result.new container end