Class: Rtype::Behavior::Base
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.[](*vals) ⇒ Object
4
5
6
|
# File 'lib/rtype/behavior/base.rb', line 4
def self.[](*vals)
new(*vals)
end
|
Instance Method Details
#error_message(value) ⇒ Object
12
13
14
|
# File 'lib/rtype/behavior/base.rb', line 12
def error_message(value)
raise NotImplementedError, "Abstract method"
end
|
#valid?(value) ⇒ Boolean
8
9
10
|
# File 'lib/rtype/behavior/base.rb', line 8
def valid?(value)
raise NotImplementedError, "Abstract method"
end
|