Class: Rutaci::CommandlineSource
Overview
this is just a convinience wrapper around the commanline info from OptionParser
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
Instance Method Summary collapse
-
#initialize(options) ⇒ CommandlineSource
constructor
A new instance of CommandlineSource.
Methods inherited from Source
Constructor Details
#initialize(options) ⇒ CommandlineSource
Returns a new instance of CommandlineSource.
50 51 52 53 |
# File 'lib/rutaci/source.rb', line 50 def initialize() raise ArgumentError, "options.fields need to be a hash" unless .fields.class == Hash @info = .fields end |
Instance Attribute Details
#info ⇒ Object (readonly)
Returns the value of attribute info.
49 50 51 |
# File 'lib/rutaci/source.rb', line 49 def info @info end |