src/Fierce.Mvc/wwwroot/content/easyui/insdep/plugin/highlight-9.9.0/test/detect/crystal/default.txt

(完整代码) 343B

class Person
  def initialize(@name)
  end

  def greet
    puts "Hi, I'm #{@name}"
  end
end

class Employee < Person
end

employee = Employee.new "John"
employee.greet #=> "Hi, I'm John"
employee.is_a?(Person) #=> true

@[Link("m")]
lib C
  # In C: double cos(double x)
  fun cos(value : Float64) : Float64
end

C.cos(1.5_f64) #=> 0.0707372

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。