Class: Nokolexbor::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/nokolexbor/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ Attribute

Returns a new instance of Attribute.



8
9
10
11
# File 'lib/nokolexbor/attribute.rb', line 8

def initialize(name, value)
  @name = name
  @value = value
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/nokolexbor/attribute.rb', line 5

def name
  @name
end

#valueObject Also known as: text, content, to_s, to_str

Returns the value of attribute value.



6
7
8
# File 'lib/nokolexbor/attribute.rb', line 6

def value
  @value
end