Sha256: f9bb76358e879bdb4c4699fab252bed6ed8d37bd41ea3b73f264ddffdc986172

Contents?: true

Size: 324 Bytes

Versions: 13

Compression:

Stored size: 324 Bytes

Contents

require 'awestruct/astruct'

module Awestruct

  class Context < Awestruct::AStruct
    attr_accessor :site
    attr_accessor :page

    def initialize(hash)
      super
      @page = hash[:page]
      @site = hash[:site]

    end

    def inspect
      "Awestruct::Context{:page=>#{self.page.inspect}}"
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awestruct-0.5.4.rc3 lib/awestruct/context.rb
awestruct-0.5.4.rc2 lib/awestruct/context.rb
awestruct-0.5.4.rc lib/awestruct/context.rb
awestruct-0.5.4.beta1 lib/awestruct/context.rb
awestruct-0.5.3 lib/awestruct/context.rb
awestruct-0.5.2.1 lib/awestruct/context.rb
awestruct-0.5.2 lib/awestruct/context.rb
awestruct-0.5.1 lib/awestruct/context.rb
awestruct-0.5.1a lib/awestruct/context.rb
awestruct-0.5.0 lib/awestruct/context.rb
awestruct-0.5.0.cr lib/awestruct/context.rb
awestruct-0.4.8 lib/awestruct/context.rb
awestruct-0.4.7 lib/awestruct/context.rb