module Cassie::Statements::Statement::TypeHinting::ClassMethods
Public Instance Methods
inherited(subclass)
click to toggle source
@!visibility private
Calls superclass method
# File lib/cassie/statements/statement/type_hinting.rb, line 11 def inherited(subclass) subclass.type_hints = type_hints if defined?(@type_hints) super end
type_hints(hints=:get)
click to toggle source
DSL to set the type hints execution option Defaults to nil
if none are set @param [Array, Hash] hints Hints to use for value serialization. Array for positional arguments, Hash for named arguments. @return [Array, Hash] hints to use for value serialization. Array for positional arguments, Hash for named arguments.
# File lib/cassie/statements/statement/type_hinting.rb, line 24 def type_hints(hints=:get) if hints == :get return @type_hints if defined?(@type_hints) nil else self.type_hints = hints end end
type_hints=(val)
click to toggle source
# File lib/cassie/statements/statement/type_hinting.rb, line 16 def type_hints=(val) @type_hints = val end