Class: Delorean::ParameterDefault
Instance Method Summary collapse
Methods inherited from Parameter
Instance Method Details
#check(context) ⇒ Object
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/delorean/nodes.rb', line 46 def check(context, *) # The check function returns the list of attrs used in the # default expression. This is then used to make check if the # attrs are available in the param's context. NOTE: in a # previous implementation, spec used to include attr type # information so that we could perform static type checking. # This mechanism has been removed. spec = e.check(context) context.parse_define_param(i.text_value, spec) end |