Sha256: fcef90b9d18d4b4269066f234419388a25d648f50220acd19fcc2da831557533
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
class CountArgs attr_accessor :options def initialize(options) self.options = options end def call(*args) puts "#{self.class} called with #{args.length} args" end end class Amazing def self.specify_options(expect) expect.banner "describe NAME" expect.text "say that someone is amazing" expect.opt :forcefully end attr_accessor :options def initialize(options) self.options = options end def describe(name) ret = "#{name} is amazing" puts options[:forcefully] ? ret.upcase : ret end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ing-0.1.2 | test/fixtures/task.ing.rb |
ing-0.1.1 | test/fixtures/task.ing.rb |