Class: Alchemist::Element

Inherits:
Object show all
Includes:
Record
Defined in:
lib/alchemist-server/element.rb

Instance Method Summary collapse

Methods included from Record

#attr_names, hamsterize, included, #initialize, #read, #update

Instance Method Details

#basic?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/alchemist-server/element.rb', line 6

def basic?
  basic
end

#hex_codeObject



10
11
12
# File 'lib/alchemist-server/element.rb', line 10

def hex_code
  "0x#{symbol.ord.to_s(16)}"
end