Sha256: 7870e36229e44b26bd1657a5bd6c61307f6cc15131eb9c8ca9d7488df79e69f1

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

# Buff::Platform
[![Gem Version](https://badge.fury.io/rb/buff-platform.png)](http://badge.fury.io/rb/buff-platform)
[![Build Status](https://travis-ci.org/RiotGames/buff-platform.png?branch=master)](https://travis-ci.org/RiotGames/buff-platform)

Buff up your code with a mixin for querying the platform running Ruby

## Installation

Add this line to your application's Gemfile:

    gem 'buff-platform'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install buff-platform

## Usage

Using it as a mixin

    require 'buff/platform'

    class PowerUp
      include Buff::Platform
    end

    power_up = PowerUp.new
    power_up.osx?     #=> true
    power_up.windows? #-> false
    power_up.linux?   #=> false

Using it as a module

    require 'buff/platform'

    Buff::Platform.osx?     #=> true
    Buff::Platform.windows? #=> false
    Buff::Platform.linux?   #=> false

# Authors and Contributors

* Jamie Winsor (<reset@riotgames.com>)

Thank you to all of our [Contributors](https://github.com/RiotGames/buff-platform/graphs/contributors), testers, and users.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buff-platform-0.1.0 README.md