Sha256: 950dc97c0d08aeb4a122c4320df095d3b465283b55f5471538e09fdfc26e3ff3

Contents?: true

Size: 377 Bytes

Versions: 6

Compression:

Stored size: 377 Bytes

Contents

module ActsAsIcontact
  
  # Allows local variables to be set in the command line client.  :nodoc:
  def self.method_missing(method, *params)
    @variables ||= {}
    variable = method.to_s
    if variable =~ /(.*)=$/  # It's a variable assignment
      @variables[variable.sub(/=$/,'')] = params[0]
      @variables
    else
      @variables[variable]
    end
  end
  
end
  

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
SFEley-acts_as_icontact-0.4.0 lib/acts_as_icontact/command_line/variables.rb
SFEley-acts_as_icontact-0.4.2 lib/acts_as_icontact/command_line/variables.rb
SFEley-acts_as_icontact-0.4.3 lib/acts_as_icontact/command_line/variables.rb
acts_as_icontact-0.4.3 lib/acts_as_icontact/command_line/variables.rb
acts_as_icontact-0.4.2 lib/acts_as_icontact/command_line/variables.rb
acts_as_icontact-0.4.0 lib/acts_as_icontact/command_line/variables.rb