Sha256: 4d818c86f5882ed6ff5f42811964a98801a15c50c3e2237aec4ee3543f6a4869
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
require "rips/utils" module Rips module Variables class Variable attr_reader :length # @length = max length of bits def initialize (length) @length = length end # Return error message about incorrent syntax def error (value) "unexpected `#{value}` (expected a `#{self.class.to_s.split(':').last}` argument like `#{@syntax}`)" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rips-0.1.1 | lib/rips/variables/variable.rb |
rips-0.1.0 | lib/rips/variables/variable.rb |