Sha256: d7d89364ee0a59f79ddde12162b851c722076f3f0e35491249ebc524173f46d7

Contents?: true

Size: 237 Bytes

Versions: 6

Compression:

Stored size: 237 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

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snuffle-0.13.0 lib/snuffle/elements/method_definition.rb
snuffle-0.12.2 lib/snuffle/elements/method_definition.rb
snuffle-0.12.1 lib/snuffle/elements/method_definition.rb
snuffle-0.12.0 lib/snuffle/elements/method_definition.rb
snuffle-0.11.1 lib/snuffle/elements/method_definition.rb
snuffle-0.10.1 lib/snuffle/elements/method_definition.rb