class Flowckerc::Atom

Attributes

config[RW]
element[R]
id[R]

Public Class Methods

new(element) click to toggle source
# File lib/flowckerc/tokens.rb, line 55
def initialize element
  @id = UniqueID.next
  @element = element
  @config = {}
end

Public Instance Methods

toHash() click to toggle source
# File lib/flowckerc/tokens.rb, line 61
def toHash
  {
      id: @id,
      element: @element,
      config: @config
  }
end