Class: Drntest::Directive

Inherits:
Object
  • Object
show all
Defined in:
lib/drntest/directive.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, value) ⇒ Directive

Returns a new instance of Directive.



20
21
22
23
# File 'lib/drntest/directive.rb', line 20

def initialize(type, value)
  @type = normalize_type(type)
  @value = value
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



18
19
20
# File 'lib/drntest/directive.rb', line 18

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



18
19
20
# File 'lib/drntest/directive.rb', line 18

def value
  @value
end