Sha256: 646171eff5c7cf2922dc19dbae0ba6e44da21fc9832fb004c6c1c3857873a905

Contents?: true

Size: 334 Bytes

Versions: 18

Compression:

Stored size: 334 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

18 entries across 18 versions & 2 rubygems

Version Path
awestruct-0.4.6 lib/awestruct/context.rb
awestruct-0.4.5 lib/awestruct/context.rb
awestruct-0.4.4 lib/awestruct/context.rb
awestruct-0.4.3 lib/awestruct/context.rb
awestruct-0.4.2 lib/awestruct/context.rb
awestruct-0.4.2.x10 lib/awestruct/context.rb
awestruct-0.4.2.x9 lib/awestruct/context.rb
awestruct-0.4.2.x8 lib/awestruct/context.rb
awestruct-0.4.2.x7 lib/awestruct/context.rb
awestruct-0.4.2.x6 lib/awestruct/context.rb
awestruct-0.4.2.x5 lib/awestruct/context.rb
awestruct-0.4.2.x4 lib/awestruct/context.rb
awestruct-0.4.2.x3 lib/awestruct/context.rb
awestruct-0.4.2.x2 lib/awestruct/context.rb
awestruct-0.4.2.x1 lib/awestruct/context.rb
awestructx-0.4.1.x1 lib/awestruct/context.rb
awestructx-0.4.1 lib/awestruct/context.rb
awestructx-0.4.0 lib/awestruct/context.rb