View 1.CompositeLogger.cr
class CompositeLogger
def initialize(@loggers : Array(Logger) = loggers)
end
macro method_missing(call)
@loggers.each do |logger|
logger.{{call}}
end
end
end
View crystal-orm.md

active_record.cr - Active Record pattern implementation

  • MySQL driver : libmysql(C API)
  • define fields simple
  • table name supports camel class name
  • model level query lacks first, count
  • low level adapter hard to access
  • relations
  • multibytes can't set charset
  • pluck not supported
  • gateway pattern not supported
View sbt-sonatype.md

+ で全バージョン一気にやって欲しい

> + sonatypeRelease
[info] Setting version to 2.12.4
[info] Reapplying settings...
[info] Set current project to http-mock (in build file:/home/maiha/git/maiha/http-mock/)
[info] Nexus repository URL: https://oss.sonatype.org/service/local
[info] Reading staging repository profiles...
[error] Multiple repositories are found:
View b.union.md

implementation

enum Pcap::NextError
  EOF     = -2 # EOF or pcap_breakloop
  ERROR   = -1 #
  TIMEOUT =  0 # should be continued
end

class Pcap::Capture
View 銀座のランチ.md

アタックリスト

  • 牛庵(別)
  • びっくりうどん
  • 親子丼(◯勝)
  • 天丼(インズ)
  • 韓国料理(検校)
View generics-inheritance-error.cr
module Core
end
class Base(T)
include Core
end
class Foo < Base(String)
end
View 1.value-and-exception.cr
def parse(str)
JSON.parse(str)
end
pp parse("1") # => 1
pp parse("x") # raise JSON::ParseException
begin
v = parse("1")
# use v