Sha256: 8588b83287e13dac394c4d9fa36a08eb444e142f3ce1e83d5f0f1d038fbd9da1

Contents?: true

Size: 371 Bytes

Versions: 10

Compression:

Stored size: 371 Bytes

Contents

module Weskit::WML::Formatters
  class ItemFormatter
    include ::Weskit::WML::Mixins::Validator

    def initialize item
      raise_unless  ::Weskit::WML::Formatter, item
      set_instance_variables
      @formatter = item
    end

    private

    def set_instance_variables
      defaults.each {|var, value| instance_variable_set "@#{var}", value}
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
weskit-0.3.6 lib/weskit/wml/formatters/item_formatter.rb
weskit-0.3.5 lib/weskit/wml/formatters/item_formatter.rb
weskit-0.3.4 lib/weskit/wml/formatters/item_formatter.rb
weskit-0.3.3 lib/weskit/wml/formatters/item_formatter.rb
weskit-0.3.2 lib/weskit/wml/formatters/item_formatter.rb
weskit-0.3.1 lib/weskit/wml/formatters/item_formatter.rb
weskit-0.3.0 lib/weskit/wml/formatters/item_formatter.rb
weskit-0.2.1 lib/weskit/wml/formatters/item_formatter.rb
weskit-0.2.0 lib/weskit/wml/formatters/item_formatter.rb
weskit-0.1.0 lib/weskit/wml/formatters/item_formatter.rb