Class: Flowckerc::Atom
- Inherits:
-
Object
- Object
- Flowckerc::Atom
- Defined in:
- lib/flowckerc/tokens.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#element ⇒ Object
readonly
Returns the value of attribute element.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(element) ⇒ Atom
constructor
A new instance of Atom.
- #toHash ⇒ Object
Constructor Details
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
53 54 55 |
# File 'lib/flowckerc/tokens.rb', line 53 def config @config end |
#element ⇒ Object (readonly)
Returns the value of attribute element.
52 53 54 |
# File 'lib/flowckerc/tokens.rb', line 52 def element @element end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
51 52 53 |
# File 'lib/flowckerc/tokens.rb', line 51 def id @id end |
Instance Method Details
#toHash ⇒ Object
61 62 63 64 65 66 67 |
# File 'lib/flowckerc/tokens.rb', line 61 def toHash { id: @id, element: @element, config: @config } end |