class Rips::Variables::Variable
Attributes
length[R]
Public Class Methods
new(length)
click to toggle source
@length = max length of bits
# File lib/rips/variables/variable.rb, line 11 def initialize (length) @length = length end
Public Instance Methods
error(value)
click to toggle source
Return error message about incorrent syntax
# File lib/rips/variables/variable.rb, line 16 def error (value) "unexpected `#{value}` (expected a `#{self.class.to_s.split(':').last}` argument like `#{@syntax}`)" end