Sha256: ed13305dc566e658a7806caf779234085396a022aa0dca19ef8b2536140c193e
Contents?: true
Size: 605 Bytes
Versions: 8
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true module Lino module Model class Argument attr_reader :argument def initialize(argument) @argument = argument end def string argument.to_s end alias to_s string def array [argument.to_s] end alias to_a string def ==(other) self.class == other.class && state == other.state end alias eql? == def hash [self.class, state].hash end protected def state [ @argument ] end end end end
Version data entries
8 entries across 8 versions & 1 rubygems