Class: Oval::ClassDeclBase

Inherits:
Base
  • Object
show all
Defined in:
lib/oval/class_decl_base.rb

Direct Known Subclasses

InstanceOf, KindOf, SubclassOf

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

ensure_equal, it_should, #it_should, #validate, validate

Constructor Details

#initialize(klass) ⇒ ClassDeclBase

Returns a new instance of ClassDeclBase.


7
8
9
# File 'lib/oval/class_decl_base.rb', line 7

def initialize(klass)
  self.klass = klass
end

Instance Attribute Details

#klassObject

Returns the value of attribute klass


11
12
13
# File 'lib/oval/class_decl_base.rb', line 11

def klass
  @klass
end

Class Method Details

.[](klass) ⇒ Object


3
4
5
# File 'lib/oval/class_decl_base.rb', line 3

def self.[](klass)
  new(klass)
end