Module: Riml::FullyNameable
- Included in:
- CallNode, DefNode, GetSpecialVariableNode, GetVariableNode
- Defined in:
- lib/riml/nodes.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
241 242 243 244 245 |
# File 'lib/riml/nodes.rb', line 241 def self.included(base) base.class_eval do raise "#{base} must define method 'name'" unless method_defined?(:name) end end |
Instance Method Details
#full_name ⇒ Object
247 248 249 250 251 252 253 |
# File 'lib/riml/nodes.rb', line 247 def full_name if respond_to?(:scope_modifier) "#{scope_modifier}#{name}" elsif respond_to?(:prefix) "#{prefix}#{name}" end end |