<commit_before># IB 

rubymotion interface builder support (yes, with outlets)

## Installation

Add this line to your application's Gemfile:

    gem 'ib'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ib

In your Rake file:

```ruby
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'

# if you use bundler
require 'bundler/setup' 
Bundler.setup

# require 'ib tasks'
require 'ib/tasks'


Motion::Project::App.setup do |app|
  # ...
  app.files.unshift IB::PATH # add ib module
end

```

## Usage

Extend your controllers with IB module:

```ruby
class SuperController < UIViewController

  # define attribute accessor
  attr_accessor title

  # define ib outlet
  ib_outlet :title, UILabel

  # define action method
  def onclick UIButton * button

  end

  # define ib action 
  ib_action :onclick
end
```

Run `rake design` create Storyboard or nibs (put them in resources folder) and you will be able to bind outlets and actions to your ruby code.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request<commit_msg>Mention sample app<commit_after># IB 

rubymotion interface builder support (yes, with outlets)

## Installation

Add this line to your application's Gemfile:

    gem 'ib'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ib

In your Rake file:

```ruby
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'

# if you use bundler
require 'bundler/setup' 
Bundler.setup

# require 'ib tasks'
require 'ib/tasks'


Motion::Project::App.setup do |app|
  # ...
  app.files.unshift IB::PATH # add ib module
end

```

## Usage

Extend your controllers with IB module:

```ruby
class SuperController < UIViewController

  # define attribute accessor
  attr_accessor title

  # define ib outlet
  ib_outlet :title, UILabel

  # define action method
  def onclick button
    title.text = "Clicked!!!"
  end

  # define ib action 
  ib_action :onclick
end
```

Run `rake design` create Storyboard or nibs (put them in resources folder) and you will be able to bind outlets and actions to your ruby code.

# Sample app

Here is [sample app](https://github.com/yury/ibsample)

1. clone it 
2. run `bundle`
3. run `rake design` to change story board
4. run `rake` to run app in simulator

**Note** : this app is build for iOS 6.0 beta 2

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
{'fraction_non_alphanumeric': 0.09960728311317386, 'fraction_numerical': 0.006783291681542306, 'mean_word_length': 3.570962479608483, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1708575', 'n_tokens_mistral': 942, 'n_tokens_neox': 863, 'n_words': 362}