Sha256: e1c6d78e4eebf9c6cccb5c0a6bcdb2f1231fc8d3cec2f452738142601de89c96

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

# Uses CRLF for line breaks to provide a test case for having SuperModule work with it
# This is done to test support for Windows Ruby files, which usually use CRLF for line breaks
module FakeActiveModel

  include SuperModule

  # Defines method on a single line to provide as a test case for SuperModule
  def self.validates(attribute, options); validations << [attribute, options]; end

  # Defines method on a single line to provide as a test case for SuperModule
  def self.validations; @validations ||= []; end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
super_module-1.1.0 spec/support/fake_active_model.rb