词汇:kernel

n. 核心,要点;精髓;内核;麦粒,谷粒;仁

相关场景

6.Object:
对象是变量的容器,称为实例变量,并代表对象的状态,特殊内部变量-连接唯一的类;类是方法和常量的容器,是它的所有实例的方法。 超类就是类的父类,有特殊变量跟踪超类。模块和类的区别是模块没有new方法;单例类。。。再定义类的方法self..会生成一个匿名的类在实例的链条上.
BasicObject> Kernel> Object >SomeModuleInPerson > Person > Customer.
Customer.singleton_class.instance_methods(false) 查看单例类。
Customer.superclass; Customer.ancestors; Customer.included_modules;
>> Effective Ruby
3.perl =~ $: $_:
message =~/^ERROR:\s+(.+)$/; $1 ; 这个$1不是全局变量,而是表示匹配的第一组的内容;是特殊全局变量。这里会费解,改成 m= message.match(/^ERROR:\s+(.+)$/) ; m[1]; String#match 返回MatchData; $: = $LOAD_PATH 别名; Kernel#readline; Kernel#print with $_ ;
>> Effective Ruby
A fiery baton remains mid-twirl, flames locked in place. A spilled box of popcorn hangs in mid-air, each kernel like asnowflake. Even the elephant is mid-poop.
>> 大鱼 Big Fish (2003) Movie Script
You get that big fat kernel of starch and you can break that down and reassemble it.
>> 食品公司 Food, Inc. Movie Script