Class: Restruct::Id
- Inherits:
-
String
- Object
- String
- Restruct::Id
- Defined in:
- lib/restruct/id.rb
Instance Attribute Summary collapse
-
#separator ⇒ Object
readonly
Returns the value of attribute separator.
Instance Method Summary collapse
- #[](id) ⇒ Object
-
#initialize(id, separator = nil) ⇒ Id
constructor
A new instance of Id.
- #sections ⇒ Object
Constructor Details
Instance Attribute Details
#separator ⇒ Object (readonly)
Returns the value of attribute separator.
4 5 6 |
# File 'lib/restruct/id.rb', line 4 def separator @separator end |