---
title: "ruby 闭包"
author: "yangbinfc"
date: "2011-02-25T10:49:00Z"
tags: []
slug: "ruby"
draft: false
lastmod: "2012-11-04T17:47:40Z"
id: 1715361
url: "https://yangbinfc.iteye.com/blog/1715361"
---

闭包 closure 就是将代码以参数的形式传递过去 ，比较方便使用

ruby的反射就是通过对象 找到他的父亲 祖宗是八代

.class即可