Class: IChing::Trigram
- Inherits:
-
Object
- Object
- IChing::Trigram
- Includes:
- HasAttributes
- Defined in:
- lib/i_ching/trigram.rb
Instance Attribute Summary
Attributes included from HasAttributes
Class Method Summary collapse
Methods included from HasAttributes
#has_attributes, included, #initialize, #to_h, #to_json
Class Method Details
.all ⇒ Object
7 8 9 |
# File 'lib/i_ching/trigram.rb', line 7 def all table.map { |trigram_data| new(trigram_data) } end |
.get(number) ⇒ Object
11 12 13 |
# File 'lib/i_ching/trigram.rb', line 11 def get(number) new(table[number: number]) end |