Sha256: 77d762a9cc221ddf611af7a8f4d11d9106ed091e1673a46798d8fc5a4a10ee3b
Contents?: true
Size: 623 Bytes
Versions: 2
Compression:
Stored size: 623 Bytes
Contents
module Spectus # This class contains a challenge to apply against an object. # # @api public # class Challenge # Initialize the challenge class. # # @param [#to_sym] method_id the identifier of a method. # @param [Array] args the arguments of the method. def initialize(method_id, *args) @symbol = method_id.to_sym @args = args end # @!attribute [r] symbol # # @return [Symbol] The method to call on the subject. attr_reader :symbol # @!attribute [r] args # # @return [Array] The parameters following the method. attr_reader :args end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spectus-2.3.1 | lib/spectus/challenge.rb |
spectus-2.3.0 | lib/spectus/challenge.rb |