Sha256: a10724374556d19171b27d94eb67127d2899b64c0ca4d73427ef357058e5f2d3

Contents?: true

Size: 260 Bytes

Versions: 3

Compression:

Stored size: 260 Bytes

Contents

module Smirk
  class Category < Client
    
    def initialize(info)
      info.each do |key, value|
        instance_variable_set("@#{key}", value)
        Category.instance_eval do
          attr_reader key.to_sym
        end
      end
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smirk-0.3.0 lib/smirk/category.rb
smirk-0.2.4 lib/smirk/category.rb
smirk-0.2.2 lib/smirk/category.rb