class Immutable

initialized by arguments or by assignment in a block; frozen thereafter

Attributes

text_value[RW]

Public Class Methods

new(args={}) { |self| ... } click to toggle source
# File lib/lygre/gabcscore.rb, line 8
def initialize(args={})
  args.each_pair do |k,v|
    writer = (k.to_s + '=').to_sym
    self.send(writer, v)
  end

  yield self if block_given?

  freeze
end