Class: Rutaci::CommandlineSource

Inherits:
Source
  • Object
show all
Defined in:
lib/rutaci/source.rb

Overview

this is just a convinience wrapper around the commanline info from OptionParser

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Source

factory

Constructor Details

#initialize(options) ⇒ CommandlineSource

Returns a new instance of CommandlineSource.

Raises:

  • (ArgumentError)


50
51
52
53
# File 'lib/rutaci/source.rb', line 50

def initialize(options)
  raise ArgumentError, "options.fields need to be a hash" unless options.fields.class == Hash
  @info = options.fields
end

Instance Attribute Details

#infoObject (readonly)

Returns the value of attribute info.



49
50
51
# File 'lib/rutaci/source.rb', line 49

def info
  @info
end