Sha256: 0e63bd192d4b20485936382a7aeb9f1b14418dc0a01bdbab712a371b4221d0dc

Contents?: true

Size: 462 Bytes

Versions: 21

Compression:

Stored size: 462 Bytes

Contents

module Relish
  module Command
    module Dsl
      module ContextClass
        
        attr_reader :context_class
        
        def initialize(context_class)
          @context_class = context_class
        end
        
        def context_class_eval(&block)
          context_class.class_eval(&block)
        end
        
        def context_class_name
          context_class.name.split('::').last.downcase
        end
        
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
relish-0.7.1 lib/relish/commands/dsl/context_class.rb
relish-0.7 lib/relish/commands/dsl/context_class.rb
relish-0.6 lib/relish/commands/dsl/context_class.rb
relish-0.5.3 lib/relish/commands/dsl/context_class.rb
relish-0.5.2 lib/relish/commands/dsl/context_class.rb
relish-0.5.1 lib/relish/commands/dsl/context_class.rb
relish-0.5.0 lib/relish/commands/dsl/context_class.rb
relish-0.4.0 lib/relish/commands/dsl/context_class.rb
relish-0.3.0 lib/relish/commands/dsl/context_class.rb
relish-0.3.0.pre lib/relish/commands/dsl/context_class.rb
relish-0.2.3 lib/relish/commands/dsl/context_class.rb
relish-0.2.2 lib/relish/commands/dsl/context_class.rb
relish-0.2.1 lib/relish/commands/dsl/context_class.rb
relish-0.2.0 lib/relish/commands/dsl/context_class.rb
relish-0.1.6 lib/relish/commands/dsl/context_class.rb
relish-0.1.5 lib/relish/commands/dsl/context_class.rb
relish-0.1.4 lib/relish/commands/dsl/context_class.rb
relish-0.1.3 lib/relish/commands/dsl/context_class.rb
relish-0.1.2 lib/relish/commands/dsl/context_class.rb
relish-0.1.1 lib/relish/commands/dsl/context_class.rb