Sha256: 12667f5f62247d7d7aa5218eedd2b261736a9b1cb333a0af78b2d8ee456f5997

Contents?: true

Size: 642 Bytes

Versions: 6

Compression:

Stored size: 642 Bytes

Contents

require 'osheet/mixin'

class DefaultMixin
  include Osheet::Mixin

end

class StyledMixin
  include Osheet::Mixin

  style('.test')
  style('.test.awesome')

end

class TemplatedMixin
  include Osheet::Mixin

  template(:column, :yo) { |color|
    width 200
    meta(:color => color)
  }
  template(:row, :yo_yo) {
    height 500
  }
  template(:worksheet, :go) {
    column(:yo, 'blue')
    row(:yo_yo)
  }

end

class PartialedMixin
  include Osheet::Mixin

  partial(:three_empty_rows) {
    row { }
    row { }
    row { }
  }

  partial(:two_cells_in_a_row) {
    row {
      cell { data "one" }
      cell { data "two" }
    }
  }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
osheet-0.10.0 test/mixins.rb
osheet-0.9.2 test/mixins.rb
osheet-0.9.1 test/mixins.rb
osheet-0.9.0 test/mixins.rb
osheet-0.8.0 test/mixins.rb
osheet-0.7.0 test/mixins.rb