Skip to content

Instantly share code, notes, and snippets.

@danielspector
Created December 16, 2014 05:08
Show Gist options
  • Select an option

  • Save danielspector/0ffe4d69eaf6c3386b65 to your computer and use it in GitHub Desktop.

Select an option

Save danielspector/0ffe4d69eaf6c3386b65 to your computer and use it in GitHub Desktop.
module Keywords
extend self
def create(attributes: nil, parent_id: nil)
puts attributes
end
def hello
puts "hello"
end
end
module Test
class Hello
extend Keywords
class << self
def create(first, second, third)
new_arr = [first, second, third]
super.create(attributes: new_arr)
end
end
end
end
module Standard
class Hello
extend Keywords
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment