Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Classes to handle Eagle Labels

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

EagleLabels

OO Eagle Lables

Installation

Add this line to your application's Gemfile:

gem 'eagle_labels'

And then execute:

$ bundle

Or install it yourself as:

$ gem install eagle_labels

Usage

Categories definition

adjective:
  code: A
  features:
    type:
      qualifying: Q
    grade:
      appreciative: A
    gender:
      male: M
      female: F
      common: C
    number:
      singular: S
      plural: P
      invariably: N
    case:
    function:
      participle: P

Initialization

EagleLabels::Specification.new # with default categories
#or
EagleLabels::Specification.new 'categories.yml'
#or
EagleLabels::Specification.new category: {'code' => 'C', 'features' => {'feature' => {'value1' => 1, 'value2' => 2}}}

Examples

spec =  EagleLabels::Specification.new

spec.all_labels
spec.valid_label? 'AQMSP'
spec.starts_with 'AQ'
spec.names_of 'AQMSP'
spec.next_codes 'AQ'
spec.tails 'AQ'

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
Something went wrong with that request. Please try again.