Sha256: bb617a272621b5ad3c6e88450b0b98a4b6b5f1d06854213b2de05742309e88d4

Contents?: true

Size: 241 Bytes

Versions: 14

Compression:

Stored size: 241 Bytes

Contents

class AttributeEncapsulator

  attr_reader :attr
  def initialize(attr)
    @attr = AttrStruct.new(attr[0], attr[1])
  end

  def key
    attr.key
  end

  def value
    attr.value
  end

  private
  AttrStruct = Struct.new(:key, :value)
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
rubber_stamp-0.15.1 lib/support/attribute_encapsulator.rb
rubber_stamp-0.13.0 lib/support/attribute_encapsulator.rb
controlled_versioning-0.12.0 lib/support/attribute_encapsulator.rb
controlled_versioning-0.11.0 lib/support/attribute_encapsulator.rb
controlled_versioning-0.10.0 lib/support/attribute_encapsulator.rb
controlled_versioning-0.9.2 lib/support/attribute_encapsulator.rb
controlled_versioning-0.9.1 lib/support/attribute_encapsulator.rb
controlled_versioning-0.9.0 lib/support/attribute_encapsulator.rb
controlled_versioning-0.8.0 lib/support/attribute_encapsulator.rb
controlled_versioning-0.7.2 lib/support/attribute_encapsulator.rb
controlled_versioning-0.6.3 lib/support/attribute_encapsulator.rb
controlled_versioning-0.6.2 lib/support/attribute_encapsulator.rb
controlled_versioning-0.6.1 lib/support/attribute_encapsulator.rb
controlled_versioning-0.6 lib/support/attribute_encapsulator.rb