Sha256: 681d953a60c8ef685202296d6eb2aa0f1198689c7ae408523aa1ed4a2ea17d01
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
class Snuffle::Element::MethodDefinition attr_accessor :node def self.materialize(nodes=[]) nodes.each.map{|node| new(node) } end def initialize(node) self.node = node end def method_name node.name end def values begin return [] unless node.children.objects.any? node.children.objects[1].children.map{|child| child.name}.flatten rescue [] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
snuffle-0.14.1 | lib/snuffle/elements/method_definition.rb |
snuffle-0.14.0 | lib/snuffle/elements/method_definition.rb |