Sha256: f8eecbb38c56be03d526a558d099db0a992e0629cc9af177042f578f4082a9f8

Contents?: true

Size: 233 Bytes

Versions: 27

Compression:

Stored size: 233 Bytes

Contents

class Eye::Reason

  def initialize(mes = nil)
    @message = mes
  end

  def to_s
    @message.to_s
  end

  def user?
    self.class == User
  end

  class User < Eye::Reason
    def to_s
      "#{super} by user"
    end
  end
end

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
eye-0.6.4 lib/eye/reason.rb
eye-0.6.3 lib/eye/reason.rb
eye-0.6.2 lib/eye/reason.rb
eye-0.6.2.pre lib/eye/reason.rb
ace-eye-0.6.5 lib/eye/reason.rb
ace-eye-0.6.4 lib/eye/reason.rb
eye-0.6.1 lib/eye/reason.rb
ace-eye-0.6.3 lib/eye/reason.rb
ace-eye-0.6.2 lib/eye/reason.rb
ace-eye-0.6.1 lib/eye/reason.rb
eye-0.6 lib/eye/reason.rb
reel-eye-0.5.2.1 lib/eye/reason.rb
reel-eye-0.5.2 lib/eye/reason.rb
eye-0.5.2 lib/eye/reason.rb
reel-eye-0.5.1 lib/eye/reason.rb
eye-0.5.1 lib/eye/reason.rb
reel-eye-0.5 lib/eye/reason.rb
eye-0.5 lib/eye/reason.rb
eye-0.4.2 lib/eye/reason.rb
reel-eye-0.4.1 lib/eye/reason.rb