Class: Mahoujin::Atoms::Concatenation

Inherits:
Object
  • Object
show all
Defined in:
lib/mahoujin/atoms/concatenation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(atoms) ⇒ Concatenation


6
7
8
9
# File 'lib/mahoujin/atoms/concatenation.rb', line 6

def initialize(atoms)
  raise if atoms.size < 2
  @atoms = atoms.freeze
end

Instance Attribute Details

#atomsObject (readonly)

Returns the value of attribute atoms


4
5
6
# File 'lib/mahoujin/atoms/concatenation.rb', line 4

def atoms
  @atoms
end