lib/code/object/argument.rb in template-ruby-0.4.0 vs lib/code/object/argument.rb in template-ruby-0.5.0
- old
+ new
@@ -1,21 +1,12 @@
class Code
class Object
class Argument
- attr_reader :value, :name, :splat, :keyword_splat, :block
+ attr_reader :value, :name
- def initialize(
- value,
- name: nil,
- splat: false,
- keyword_splat: false,
- block: false
- )
+ def initialize(value, name: nil)
@value = value
@name = name
- @splat = !!splat
- @keyword_splat = !!keyword_splat
- @block = !!block
end
def regular?
!name
end