Class: Declare::Scope

Inherits:
Object show all
Includes:
Assertions
Defined in:
lib/declare/scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Assertions

#CATCH, #EQL, #EQL?, #EQUAL, #EQUAL?, #FALTHY, #FALTHY?, #INSTANCE_OF, #INSTANCE_OF?, #IS, #IS?, #KIND_OF, #KIND_OF?, #MATCH, #MATCH?, #NOT, #NOT?, #RESCUE, #RESPOND, #RESPOND?, #TRUTHY, #TRUTHY?, #_declared!, #failure, #pass

Constructor Details

#initialize(target) ⇒ Scope

Returns a new instance of Scope.


13
14
15
# File 'lib/declare/scope.rb', line 13

def initialize(target)
  @it = target
end

Instance Attribute Details

#itObject (readonly)

Returns the value of attribute it


11
12
13
# File 'lib/declare/scope.rb', line 11

def it
  @it
end